Reputation: 159
I'm packaging a Java application for Linux using install4j 7.0.8 and I find that when I include in the package the Oracle OpenJDK 11.0.1 for Linux from here:
that the JRE that's created using the createbundle program is pretty much the same size as the JDK tar.gz file, about 179 Mb. But the pre-packaged JREs from ej-technologies are only 45 Mb. How can I create small JREs for Linux like that?
Upvotes: 3
Views: 1053
Reputation: 47995
You can create a smaller JRE with jlink and then create a JRE bundle from it.
install4j 8 will include functionality to do this directly in the install4j IDE.
Upvotes: 2