Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smallest Java Runtime I can legally distribute? [closed]

Tags:

java

licensing

My Java SWT desktop application is distributed with it's own Java runtime and I want to make the download size as small as possible. I'd like to remove all the classes I don't use from rt.jar, but this is forbidden according to JDK runtime licence (see the README.html file in the root JDK folder).

Since Java is open source, am I allowed to compile my own 'Java' runtime from source which doesn't have this distribution restriction? If so, has anyone done this already? (Or do you just ignore the JDK licence terms?)

like image 318
Mark Avatar asked Jun 05 '10 12:06

Mark


People also ask

Does Java Runtime require a license?

Java SE continues to be available under the Oracle Binary Code License (BCL) free of charge. Java Runtime Environment (JRE) use for embedded devices or use of commercial features may require a license fee from Oracle.

Which Java version is free for commercial use?

You can download the latest OpenJDK release of Java from Oracle, for free, under an open source license from jdk.java.net. Oracle JDK 8 and Oracle JDK 11 are free for Personal, Development and other uses. Oracle JDK 17 and later release are available under a Oracle No-Fee Terms and Conditions License for all users.

Does Java 8 require a license?

Oracle has announced that from January 2019, Java SE 8 public updates will no longer be available for business, commercial or production use without a commercial license although it will remain free for general purpose computing usage.

What version of Java needs a license?

Any Java SRE and SDK version newer than 1.8. 0.202 requires a license. Recommendations: Remove it, if possible.


2 Answers

As I am not a lawyer too you will need to read this and see if it can feet your need. But this is not what I offer. Project Jigsaw that is a part of the OpenJDK effort that will be released as part of Java 7 around second half of 2010 I do not know your time line and requirements but MAY BE this is what you are looking for.

This what thay say as:

The goal of this Project is to design and implement a simple, low-level module system focused narrowly upon the goal of modularizing the JDK, and to apply that system to the JDK itself. ...

like image 178
Boris Daich Avatar answered Oct 13 '22 13:10

Boris Daich


openjdk afaik is GPL V2 licensed implementation with a HotSpot VM, so you can recompile and redistribute as long as adhere to the GPL.

like image 42
fasseg Avatar answered Oct 13 '22 14:10

fasseg