javaizpack

IZpack - how to install JRE using IZPack?


I am creating JAVA swing application. Goal is to make that application installable and distributed in exe or JAR, which is to be installed in different Windows based machines. I am using IZpack for this purpose.

My Problem is the swing application itself needs JRE. So, how can I install JRE on client PC using IZpack?


Solution

  • Not with IZpack on its own, but you can wrap up an IZpack installer JAR as a .exe using a tool such as Launch4J, and when users run the .exe it will prompt them to download a JRE if there is no suitable one installed already.