Search code examples
javawindowsinstallationexeizpack

Izpack installer can't run without java


I've created a java application , and its installer with izpack , I can setup my application with out any problems when the machine has JRE , but when there is no JRE installed on the machine I get an error indicating that "Windows cannot find javaw. Make sure you typed name correcly and try again." Is there a way that I can pop up some friendly panel to user to tell him to install jre , or is there a way to bundle a jre inside the exe?


Solution

  • I surfed the internet till I came across an article talking about Izpack native launcher (Building Native Windows Installers with IzPack Native Launcher); which provides three options which I really needed , and these options are :

    1. manually specify a JRE location
    2. download one from the Internet
    3. install one that is provided by the packager (if available).