Skip to main content

Creating executables

1 reply [Last post]
Joined: 2006-02-17

I have written a small program with two java files using Sun One Studio. Is there any way to create an executable file so I don't have to load Sun One Studio everytime I want to run my program.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You don't need to load SUN One Studio to start your program. Either you could make a JAR file and launch your program from console with the command

java -jar jarfilename.jar

But make sure to configure you manifest file before. See [url href=""]here[/url] for an exmaple how to do this.

But if you want to start your java program with an executeable file there are a lot of tools that can be used. Some examples are [url href=""]NativeJ[/url], [url href=""]exe4j[/url] or [url href=""]The Marner Java Launcher[/url] (this one is for free).