r/javahelp • • Dec 29 '19

OpenJDK license

Hello,

so I'm a bit confused now regarding the licensing of the open jdk. Can I use the OpenJDK 13 in production projects or not? https://jdk.java.net/13/

And what does in "GNU General Public License, version 2, with the Classpath Exception." the "with the Classpath Exception." mean?

18 Upvotes

5 comments sorted by

16

u/nerdyhandle Dec 29 '19 edited Dec 29 '19

so I'm a bit confused now regarding the licensing of the open jdk. Can I use the OpenJDK 13 in production projects or not?

Yes.

Edit: Why'd this get downvoted? OpenJDK can be used in production. It's Oracle's JDK that you cannot use in production without getting a license from Oracle.

5

u/morhp Professional Developer Dec 29 '19

Of course you can use openjdk in open source projects. The classpath exception basically means that you can use the openjdk class files (the classpath) without your project being GPL2 as well. Otherwise the GPL would require every Java application to be GPL as well.

4

u/lukelane124 Dec 29 '19

I think OP was asking about using openJDK13 with closed source projects; I'm sure your answer would still be the same?

4

u/morhp Professional Developer Dec 29 '19

Yes, it can be used for closed source projects as well.

0

u/puspendert Dec 30 '19

Java(from any providers) is free to use whether it's open source or closed source project. It's the support which is paid. With OpenJdk you get the security updates free of cost, but with Oracle you need to buy their license for getting security updates and support.