wood burning stoves*
The moose likes Beginning Java and the fly likes How to convert a java code into an exe file--Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to convert a java code into an exe file--Please help" Watch "How to convert a java code into an exe file--Please help" New topic
Author

How to convert a java code into an exe file--Please help

Foni kumar
Ranch Hand

Joined: Sep 19, 2007
Posts: 66
Hi All,

Can any one help me out with conversion of my java code into an executable .exe fle . I have a class created suuppose automate_database.java and i want to convert this into an exe file so that it can be put in anyone's machine and they can execute the code by double clicking the exe file.

Please help with some steps I need to perform .Appreciate for all your suggestions in this regard

Thanks,
Deb
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

By creating executable jar files


Life is easy because we write the source code.....
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
.exe files only work on Windows, thus defeating the purpose of being able to "put it on anyone's machine": Double-clickable jar files are designed to avoid this problem: http://www.coderanch.com/how-to/java/JarFiles
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4528
    
    5

debashis mekap wrote:I have a class created suuppose automate_database.java


A word of advice: learn to follow the Code Conventions for the Java Programming Language.


luck, db
There are no new questions, but there may be new answers.
Foni kumar
Ranch Hand

Joined: Sep 19, 2007
Posts: 66
Pramod P Deore wrote:By creating executable jar files


That works for me Thankyou so much every one
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert a java code into an exe file--Please help