Skip to main content

Creating executables

1 reply [Last post]
bertopanou
Offline
Joined: 2006-02-17
Points: 0

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.
Anonymous

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="http://mindprod.com/jgloss/jar.html"]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="http://www.dobysoft.com/products/nativej/"]NativeJ[/url], [url href="http://www.ej-technologies.com/products/exe4j/overview.html"]exe4j[/url] or [url href="http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm"]The Marner Java Launcher[/url] (this one is for free).