This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 633
Android Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By creating executable jar files
 
Tim Moores
Saloon Keeper
Posts: 3828
79
  • 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: 5167
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
Boost this thread!