Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Convert .java to .exe

 
Nikkie Babu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help me by sayong how to convert the .java files to .exe?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might a double-clickable jar file suffice? That would be cross-platform as a side benefit.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been a frequent question since the very early days of Java (1995). Although it is possible to generate a *.exe that runs a Java program it generally brings very few benefits in that it will require the exact same runtime support (i.e. the disk space of the JRE) as the equivalent Jar file and will not provide any performance benefits as it will still be relying on running .class files through a virtual machine. You can investigate the GCJ solution which is a component of the GNU compiler chain but on balance I strongly recommend you don't pursue the route of trying to generate *.exe files. You will spend a large amount of time and energy and gain very little benefit even if you succeed.
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you simply would like to create an executable wrapper around your java application (jar file) you could consider Launch4j.
[ May 19, 2006: Message edited by: Edwin Dalorzo ]
 
Alan Hermin
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JBuilder....Great,Enterprise,Stable IDE,Plus you can make jar files and .exe files
 
Nikkie Babu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic