This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make exe file?" Watch "How to make exe file?" New topic
Author

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
Yatin
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Joe Myn
Greenhorn

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":

- http://www.syncedit.com/download_javalauncher.html
- http://www.duckware.com/jexepack/index.html
- http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm

You might also consider using free release of Zerog's "InstallAnywhere Now ! " (http://www.zerog.com/)that 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!

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make exe file?
 
Similar Threads
Can we Avoid Dos Prompt
How to create exe file
How to create exe file?
How can I jar file and batch file to treat as a exe file?
How to make exe file?