Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to open my source code if I use OpenJDK as JVM? [closed]

With the current developments regarding Oracle announcing its intention to charge for a pro (or whatever you call it) version of JVM, and IBM announcing its intention to support OpenJDK, things are getting quite complicated for a large set of Java developers. We have a large piece of work in Java, and we did not have any issues in choosing our licensing terms up until now. It appears that we'll have to switch to OpenJDK where IBM will be putting their support. But OpenJDK is GPL V2, and as far as I know, any code linking to GPL V2 must be GPL V2. We also have some JNI code, which is going to get even larger. Given these facts, does it mean that if we use OpenJDK to run our software, we'll have to switch to GPL for our licensing? Needless to say, this would blow away our whole licensing & business model setup.

like image 987
mahonya Avatar asked Nov 10 '10 10:11

mahonya


People also ask

Is Java JVM open source?

The JVM reference implementation is developed by the OpenJDK project as open source code and includes a JIT compiler called HotSpot. The commercially supported Java releases available from Oracle are based on the OpenJDK runtime. Eclipse OpenJ9 is another open source JVM for OpenJDK.

Is HotSpot JVM open source?

No, the sources of the JVM (the so-named hotspot JVM, the java bytecode interpreter) isn't in src.

Can I use OpenJDK in production?

Oracle's JDK (commercial) — you can use this in development and testing for free, but if you use it in production, you have to pay for it. Oracle's OpenJDK (open source) — you can use this for free in any environment, like any open source library.

Can I use OpenJDK for commercial use?

4.2. There are some licensing implications when using Oracle's platform. Public updates for Oracle Java SE 8 released after January 2019 won't be available for business, commercial, or production use without a commercial license, as Oracle announced. However, OpenJDK is completely open source and can be used freely.


1 Answers

The license for OpenJDK is not "GPL v2", it's "GPL v2 with the Classpath Exception". Quote:

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library.

like image 141
Chris Lercher Avatar answered Oct 14 '22 14:10

Chris Lercher