• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Converting Java Programme to appliation

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,
Please let me know some technique of Converting Java Programme to appliation.
I have a java program say My.java
I want 2 convert into An application(like exe)
how to do this?
 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure I understand you correctly. After you compile the .java file, it is a executable file like .exe file.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually when you compile a .java file it creates a .class file which is NOT executable by itself. You have to have the JVM installed to run the program.
In answer to the original question, though, I don't know for sure of any way to create an exe file for a Java program. There has to be a way since I've seen plenty of examples. For now, you may just want to create an executable JAR file instead. Search these message boards to find an example of how this is done. This question has been discussed several times here at Java Ranch.
HTH
Layne
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're curious to learn more about the executable JAR route, take a look at The Creating an Executable JAR Thread.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic