Skip to main content

Is JNI already Open Source ?

1 reply [Last post]
Joined: 2006-09-21
Points: 0

I'm developing a library on Linux and Windows. The library can be accessed from plain "C" but implements also a Java-JNI wrapper for all the functions in it.

The library is to be distributed as a source-tarball, to be build with automake etc.

Question is:
Am I allowed to distribute the jni.h jni_md.h files from the JDK along with my own source-code?

What is the current status of this issue, is it going to change when Java is Open Sourced?

Sorry to bother you with this, but I really ran out of Google-Keywords to clear this issue.

BTW : Best answer yet "Probably not" from a java-forum entry dating back to 2003.

Thanks for reading

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-18
Points: 0

No, JNI is not open source. Yet. It's covered by the license that covers the JDK source. It goes open source when the platform goes open source. I don't know the answer about the JNI specification.

Why would you want to redistribute the header files? In any case it's already been announced the license would be an OSI-approved license, so once the platform is open sourced then the header files could be redistributed because OSI-approved licenses do allow for that.