Smallest Java Runtime I can legally distribute?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-06-05T12:13:26Z Indexed on 2010/06/05 12:22 UTC
Read the original article Hit count: 160

Filed under:

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?)

© Stack Overflow or respective owner

Related posts about java