• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to conver .jar to .exe file  RSS feed

 
Ravindranath Chowdary
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I have a jar file. How can I create an exe file to run that jar. Give me the steps in detail.

Thanks,
Ravindra.
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An "exe" file is platform-specific file. Since Java is cross-platform, we prefer to use the cross-platform executable JAR file.
 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you really want is to execute the jar which contain a class with a main method, that is it includes a java application, right? Then you execute it with the command java -jar Myjar.jar

An another thing is that a windows computer may execute the jar automatically if you doubleclick the the jar but it is still a JVM (java) that executes the file.

Hope this have added some clarification.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!