Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 632
Android Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By creating executable jar files
 
Tim Moores
Bartender
Posts: 2687
36
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pramod P Deore wrote:By creating executable jar files


That works for me Thankyou so much every one
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic