Google

Wednesday, January 28, 2009

Creating an exe for jar files



Use AutoIT and insert the following:

Run("javaw -jar pcSCJP.jar");

Select an appropriate icon and save it.
Then use the AutoIT Compile Script Tool, to convert it to an exe.

Put the exe in the same folder as the jar file.
Create a shortcut out of the exe file and put it anywhere you like, eg
the Desktop.

Double click the exe just like any windows program and it will launch
the jar file.