Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am a student of the Java language. I want to know how can we make Java executable (.exe) file. Please help me to make this.
Thanks in advance
bye.....
Posted
Updated 19-Mar-10 1:06am
v2

Java doesn't produce .exe files, you'll either get .class files or if you bundle those together a .jar file.

Luckily there are tools for converting a .jar file to a .exe, here's some links to various tools that do this:

JSmooth[^]

JarToExe[^]

I haven't personally tried any of these but I think the JSmooth looks cool.

Hope this helps.
 
Share this answer
 
The big question here is: "What is your goal in doing this?"

You could be trying for a pre-compiled to native code executable that does not require a Java Runtime Environment on the target machine. This would produce an executable for a specific platform. As far as I know, there are only 2 possibilities available for this: the excelsior jet compiler[^] and the GNU compiler[^]. I was exploring this a while ago for a project and did a very little with the excelsior compiler. Unfortunately the project was "indefinitely suspended".

You could be trying for a wrapper around your Java byte code that appears more like a native exe to your users or simplifies some deployment issues. There are a lot of varied possibilities for this.

I would suggest that you read this[^]. It includes a lot of good explanation, the links I provided above, and links to many choices for the other approach.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900