Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling as application 1

Status
Not open for further replies.

Aarem

Programmer
Oct 11, 2004
69
US
Hi. I'm new to Java, and I'm not exactly sure how to do this: how can I compile a .java file into an application file(.exe).
 
Java is designed to be operating system agnostic, and exe's are specific to the Microsoft platform, so while there may be some 3rd party tool to do this, you generally wouldn't.

Usually your .java files get compiled into .class files, which get run by java.exe (which *is* platform-specific). Read more at:

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Are there other ways to compile a class file into a standalone application then?
 
Just google for "java exe" - there are loads of tools that will compile byte code int exe's. But remember that this is NOT the common way to do things. These day's JIT runtime compilers are very good. If you are new to Java, as you say, you should certainly learn things the traditional way first.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top