Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can java make exe files?

 
Icon Liu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just know the java application is *.class files,but how to make *.exe files with java?
thanks for your help
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is asked on a regular basis. You should use the Search utility to find out what has been said about it. For example, you will find a threads like this, this, and this.
HTH
Layne
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Icon Liu!
There are programs that you can download to create an exe from a Java application. This approach at creating an executable application would likely have two big flaws - it would only be executable on Windows, and the size of the exe might be a lot bigger than you were expecting as some Java -> exe programs will bundle the JRE (about 5MB) with the application.
I'd suggest that you consider Creating an Executable JAR File. Such an application would be only as big as you made it, and would run (by simply double-clicking on the file) on any machine with a Java 2 Runtime Environment properly installed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic