10-07-2008, 07:25 PM
|
PM User |
#2
|
|
Regular Coder
Join Date: Apr 2005
Location: Ohio
Posts: 254
Thanks: 1
Thanked 63 Times in 63 Posts
|
Haven't tried it myself but this seems pretty straight forward:
Quote:
2.2. Creating your first exe
Building your own EXE wrapper for your java application just needs a few simple steps: specify the name of the executable, define the main java class, optionally a classpath if it needs more than its own jar, and that's all.
2.2.1. Quick Start
The minimum data you need to start the creation of the binary executable for your application is to specify a classpath and the fully-qualified name of your main class. You can configure both in the Application panel (add new jars or directories using the icon with a yellow + sign, and type the class name in the Main Class field.
Once done, go to the Windows Executable panel, and type the name of the executable in the Executable Name field. Do not forget to add the .exe suffix, for your executable name. Something like my-app.exe should be fine.
Of course, you can specify many more options for the java wrapper, but this is enough for a basic java application. Now, click on the save button (or in the File+Save menu) and select a filename for the project. This is an important step, because all the path stored in the file, and displayed in the GUI are relative to this project file. Selecting a location under the root directory of your project is a good (and safe) choice.
Once your project is saved, it is just a matter of clicking on the Project+Create Exe. And that's it. You can use the Project+Run Exe to run the program, or use the windows explorer to run the executable.
|
Source: http://jsmooth.sourceforge.net/docs/...oc.html#N100B0
|
|
|