Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to generate a exe file for a java application

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you tell me as to how I should create a java application for a exe file?
Is there any tool for that?

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find several tools by googling. The question is, why do you want to do this?
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was asked in one of my friends about how to create a exe file for a existing application. Could you please answer it?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, using exe files for Java code has numerous drawbacks. http://www.coderanch.com/how-to/java/JarFiles might be a better alternative.
 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If its a desktop application then you can create a batch file to run the java file.
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this article and pay attention to the following:

"You cannot"
"You should not, because that would kill the very purpose of Java"
"You can do that with third party software X and Y"


If you really have a good reason for it, and I suspect it's not optional, google for Launch4j.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Padma priya Gururajan wrote:Could you please answer it?


I already did: Google.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic