Friends, I am using JSMOOTH installer for creating .exe file and Bundled my Default JRE path in it..
If the user doesn\'t have Java Virtual Machine in his system it
I am not familiar with JSmooth Java launcher creator. But, based on Launch4J Java launcher creator, you shall include your target JRE folder (all folders and subfolders of target JRE intact) as part of your application launcher bundle. Launch4J must be run from the base folder where it can find the JRE folder. For example, if your have a project launcher path like "C:\MYProject\install" where you compile all your classpath dependency files to run your launcher EXE file with "C:\MyProject\install\jre1.6.0_26" is the target JRE folder inside it. Your JVM bundle entry shall be "jre1.6.0_26". Launch4J EXE launcher file shall be able to find relative "jre1.6.0_26" folder from the base of "C:\MYProject\install"
When translate this to what your EXE launcher file will do when it tries to run:
C:\C:\MYProject\install
|__MyApp.EXE (your resulting output launcher file)
|__all classpath dependency jars needed by MyApp.EXE
|__jre1.6.0_26 (folder of JVM bundle)
Ant task for Launch4J script: