Zulu Community

Does anyone know of a nice way to bundle a Java JRE into a windows .exe?

Updated on October 14, 2015 in Zulu on Windows
1 on October 14, 2015

Does anyone know of a nice way to bundle a Java JRE into a windows .exe?

  • Liked by
Reply
0 on October 14, 2015

There’s a cool write up we found on this. Check it out. Please let us know your thoughts and personal findings.

=====
Original url here: http://bit.ly/java-gaming

Embedded JVM for Windows Native Deployment seems viable
« Posted May 08, 2014 »
With more end users having no JVM installed on the windows platform, I have been investigating alternatives on providing a native executable version of my java application.

I have tried:

  1. Excelsior JET but I will not be able to convince my work to pay for a license <image001.gif>
  2. Java Native Compiler… but that is limited to java 1.5
  3. Launch4J to make a exe-jar wrapper + embed a 1.7 JRE… way too large even when compressed using LZMA ( > 44Meg ) and the license is such that you cannot remove unwanted components.

Then I found that Azul Systems provide a Windows binary of OpenJDK (called Zulu).
4. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE .. getting better( ~ 17 Meg )
5. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE, but perform Pack200 on all the jars + batchfile to unpack200 the jars…. better again!( ~ 12 Meg )
6. Launch4J to make a exe-jar wrapper + embed 1.7 Zulu JRE, but perform Pack200 on all the jars + batchfile to unpack200 the jars + perform lossless shrinking of the JRE dlls,gifs,exes,etc… ( ~ 11 Meg )

That seems quite reasonable… and that is without stripping any of the actual JRE functionality.

##
Thanks for your time! Please communicate real time with our team and our Director of Community & Customer Engagement, Patricia, at the following handles on Twitter or community at azulsystems dot com.

@zulucommunity
@azulsystems
@patricia_dugan
http://www.azulsystems.com

Patricia 
 

Official answer

Avatar

Patricia

The original URL here: http://bit.ly/java-gaming does a fair comparison of approaches for Windows deployment. I’d wonder what happens with a Compact Profile 1 JRE, where some API functionality is definitely stripped. That is likely the smallest runnable Java we can provide today.

Matt

  • Liked by
Reply
Cancel