So following this schema if I wish to do everything free I can use the JDK's that are on https://jdk.java.net/

Now say that I wish to publish ready made packages for clients with jlink that I offer for download on my website. Following the classpath exception in the GPLv2 + classpath exception license


Certain source files distributed by Oracle America and/or its affiliates are subject to the following clarification and special exception to the GPL, but only where Oracle has expressly included in the particular source file's header the words "Oracle designates this particular file as subject to the "Classpath" exception as provided by Oracle in the LICENSE file that accompanied this code."

So after compiling my program and gathering everything that has been used for distribution, do I have to check every source file of included elements from the jdk to check if that header note was put in there?

And if that sentence isn't there in one of the source files, does that mean I am forced to distribute my program/game/utility under GPLv2 or compatible?

  • 1
    Are you going to distribute the JDK, or just your application? – Brandin Feb 21 '19 at 13:25
  • 2
    @Brandin The application will be bundled with the runtime, just like Mincraft does nowadays. – Tschallacka Feb 21 '19 at 13:26
  • 2
    I guess it depends on which parts jlink includes. If you want a way to check, you might try removing all of the GPL (without classpath exception) sources and re-running your build to see if any part of your build fails. If the build still works after removing all GPL (without classpath exception) sources, it means your build does not depend on any GPL (without classpath exception) sources. And if it fails, it will point you to the troublemaker. – Brandin Feb 21 '19 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.