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.
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).
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.