I am using WinRun4J utility to create a java desktop application(using JDK 1.6.0_45 64 bit on Windows 7 premium 64 bit) executable. I have created the EXE file by selecting "Export type" as 'Standard' and "Launcher Type" as '64-bit Windows'from the WinRun4J wizard after putting WinRun4J JAR(org.boris.winrun4j.eclipse_0.1.3) in the plugis folder of Eclipse.Below is .ihi file looks as of now.
working.directory=.
classpath.1=.\thirdpartyJAR\MQLink_Windows_Installer.jar
main.class=mqlink.Main
vmarg.1=-Dbase.dir=c:\mqlink
vm.version.min=1.6.0
vm.location=C:\Program Files\Java\jre1.6.0_43\bin\server\jvm.dll
Issue: I have to specify manually JRE location in the vm.location attribute to run my executable successfully. If I don't specify vm.location I get error "Failed to find Java VM". Not sure why this is happening I am doing all above stuffs with following configuration
- 64 bit Windows Premium OS.
- 64 bit JDK 1.6.0_45 to use with Eclipse.
- 64 bit JRE 1.6.0_43
- environment variable %path% is showing the path to JRE 1.6.0_43
As I have to deliver this executable to end users how to overcome this issue? so that JRE path should be taken automatically from the user system.