• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make exe file?

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Myn
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can make a batch file .bat
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic