How to use
1. Browse for jar archive by clicking on the "..." button (from the front of "Jar file name:" label )
2. Click the Convert button and watch the Status label
3. A. If "Auto Name Out Exe" is checked a new file named originalFilename+"_conv.exe" will be created on the target file directory.
B. If "Auto Name Out Exe" is not checked after you press the Convert button you will have to choose the output exe file name.
You could (optional) choose an icon (.ico extension) for the generated executable (.exe extension); or you could just choose the desired exe with a icon and let the convertor (JarToExe) grab the icon from that exe.
Java min version and max version (minim and maxim java version):
If "Preferable version" from "More options" is checked it will first try to find the Java version according to minim and maxim Java version
and after will try to run the jar with any version of JDK/JRE you have installed.
If "Preferable version" is not checked it will try to run the jar only with the Java version which passes the test of minim and maxim version.
"Preferable version" not checked = mandatory Java version.
Java min version and Java max version must be entered like this:
*** where m_major, m_minor and m_sub are numbers and the point "." is the separator!
m_major = major number
m_minor = minor number
If you enter just a number like "10" the program will take that as you entered only the major version (10)
If you enter "12.28" the program will take that as you entered both major version (12) and minor version (28)
If you want to execute the jar with a specific Java version set Java min version = Java max version = your target Java version.
Distributing the Jdk/Jre with the program (optional):
The "javaw.exe/java.exe/jvm.dll relative path" will be checked first before locally installed jre(s)/jdk(s).
1. Choose your desired jar file name to be converted by clicking on the "..." button on main form
2. Copy the jdk/jre directory in the directory of the .jar program to be converted
3. Browse for the "javaw.exe/java.exe/jvm.dll relative path" by clicking on the "..." button on MoreOptions form
*** the relative path is the directory where the file (javaw.exe/java.exe/jvm.dll) is located and you can fill it manually in textbox
*** the relative path will be filled by the convertor (JarToExe) from the paths you choose
4. When you distribute your program you should include beside converted program the JDK/JRE directory.
The disadvantage of this is the growning in size. The advantage is that users won't have to install JDK/JRE for executing the program.
In JarToExeProc you can see two radio boxes: javaw.exe and java.exe - this is what process to be created, javaw.exe is GUI (Graphical User Interface) while java.exe is console (Console Windows).
In JarToExeProc "Other java arguments" are the process parameters for javaw.exe or java.exe (depending on what radio box you choose/check).
In JarToExeJni ";" char is the separator for "Other jni parameters" and for "Other class paths"!