File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to make exe file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make exe file?" Watch "How to make exe file?" New topic

How to make exe file?

Yatin Shah
Ranch Hand

Joined: Sep 11, 2004
Posts: 72
Hello Sir,

I did my project using RMI, JavaMail and Swing. I want to make exe file of my project with Icon. I want to do in following manner.

(1) My Client Appication and Server Application should start whenever system start with RMI registry.

(2) My GUI will start whenever User click over it.

Any one can help me? PLease, Inform me How can I do?

Thanking You
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Hi Yatin, um, this forum is for Mobile Devices, J2ME, there aren't exe files with them.

I think you have a regular Java Application, so I am going to move this to a more appropriate forum. I think Java In General (Beginner) should do the trick.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Joe Myn

Joined: Oct 19, 2004
Posts: 25
You can make a batch file .bat
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140
Hello Yatin,

May I suggest you again to check theses "java launcher":


You might also consider using free release of Zerog's "InstallAnywhere Now ! " ( works as a java launcher and can also install JVM during the install process.

Lionel Badiou
CodeFutures Software
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
This question has been asked many times before on this forum. You can use the Search tool to find the previous discussions. To summarize, you cannot create an exe file with Java itself. This would defeat the whole purpose of "Write once, run everywhere" since exe files are specific to the Windows operating system.

With that said, there are some tricks you can use. One is to use third-party software like those suggested above. Another more "Java-like" trick is to package your application as a JAR file. To make the JAR executable, you can add a single attribute to the its manifest file:

Main-Class: YourClass

If you need further details, I will refer you once again to the Search tool that can help you find previous discussions on this topic.

Keep Coding!


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: How to make exe file?
It's not a secret anymore!