JRE smaller packaging

I want to send an open source Java project with my own JRE so that it does not depend on whether it is installed or not. I will have everything in one directory, and my program will be the only user of this jvm and library class. Since Java is now open source, I think that now I can legally split the class library (rt.jar) only into the classes I need. For example, I do not use SQL, so I do not want to burden the load with the classes in the java.SQL package. This will be somewhat similar to the linking step, when the executable is created from libraries using only the methods in the call tree, which starts with main () programs. Does anyone know what tools I can use for this. Is it possible?

+3
source share
2 answers

I think this is almost done in the Java 6 10 update.

This was planned for Java 7, but it was shipped earlier.

The Java core is the details, I'm not quite sure that this is what you need.

Here are the links:

http://tech.puredanger.com/java7/#kernel

http://weblogs.java.net/blog/chet/archive/2007/05/consumer_jre_le.html#JavaKernel

Here's another:

http://java.sun.com/javase/6/6u10faq.jsp#JKernel

+1
source

There is a commercial tool that can legally break up the Java class library .

0
source

Source: https://habr.com/ru/post/1711123/


All Articles