954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to create an executable file in java

Hello everybody!!!

Can someone help me on how to create an executable file on java?
I made some applications in java but my problem is, I need to compile my program everytime I want them to run ... What I want is to compile my program once and then just execute the executable file everytime I want to run...

I hope you could help me with this one....


YOUR HELP IS HIGHLY APPRECIATED....


THANK YOU!!!

jk_bscomp
Light Poster
46 posts since Apr 2007
Reputation Points: 4
Solved Threads: 1
 
I need to compile my program everytime I want them to run


No. You compile it once to .class files. Then you run the .class files with "java MyClass".

bugmenot
Posting Whiz in Training
225 posts since Nov 2006
Reputation Points: 53
Solved Threads: 34
 

This site should help.

How to Jar

jasimp
Senior Poster
3,623 posts since Aug 2007
Reputation Points: 533
Solved Threads: 53
 

bro!
just try to download the exe4j_windows_4_1.exe software....
ok!

alpe gulay
Light Poster
45 posts since May 2008
Reputation Points: 9
Solved Threads: 1
 

What you want is an executable .jar file...
All it is, is all your already compiled .class files Zipped in one icon, which executes the .class which contains your main method... Basically, it's like an .exe file but with a .jar extension, for java...

TheWhite
Junior Poster
174 posts since May 2008
Reputation Points: 72
Solved Threads: 6
 

please help me to make java file as exe file

ayanmodak
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

I've heard that MinGW can compile Java into machine code...

nickguletskii
Light Poster
38 posts since Jun 2009
Reputation Points: 10
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You