Two Laptop Bag
The moose likes Beginning Java and the fly likes can java make exe files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can java make exe files?" Watch "can java make exe files?" New topic

can java make exe files?

Icon Liu

Joined: Nov 26, 2002
Posts: 2
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

Joined: Dec 06, 2001
Posts: 3061
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.

Java API Documentation
The Java Tutorial
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
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.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: can java make exe files?
It's not a secret anymore!