• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to make exe file?

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can make a batch file .bat
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic