Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Compact profile for Windows(How?)

I am using Oracle Java Development Kit. I developed an application with JavaFx,h2Database and Jasper Studio. But My simple java program is more than 190MB if i include the jre bundle. Someone suggested to use Java Compact profile to reduce the size.

I have downloaded EJDK and tried to use jrecreate.bat on windows. But it makes the compact profile only for Linux. I don't see any files for windows.

I am also using Intellij IDE, I don't see any option in this IDE too.

How do i create Compact Profile in windows? Possible to do it in Intellij IDE? Any other way for windows? No download option of those profile?

There was an answer How to create compact profiles but i don't want to use openjdk.

like image 242
u4547878 Avatar asked Nov 09 '22 13:11

u4547878


1 Answers

If you are adventurous, you could use Jigsaw and a Java 9 early access edition, which provides a modular jre, which can be used to run JavaFX applications requiring a minimal runtime bundle for the application.

For Java 8, you can refer to the following answer:

  • Build Custom JDK, delete useless libs
like image 198
jewelsea Avatar answered Nov 14 '22 22:11

jewelsea