OpenJDK and JNI -- licensing

Mark Wielaard mark at
Fri Jul 3 07:00:07 UTC 2009

Hi Kevin,

On Thu, 2009-07-02 at 12:56 -0500, Kevin Regan wrote:
> I'm reading the Classpath exception as meaning that a compiled
> java .class file that is run with the JRE would otherwise be subject
> to the GPL, if not for the exception.  Is this correct?


>   Does this extend to JNI libraries (that do not reference any OpenJDK
> code) that are actually linked into the JRE through a dynamic library
> at runtime?

The exception is not specific to any language (be it a module written in
java, c, c++, etc). So it covers anything written that is an independent
module according to the exception clause.

If that isn't clear, then maybe someone from Sun can update the openjdk
legal page and/or faq.



More information about the discuss mailing list