It's not a secret anymore!*
The moose likes Beginning Java and the fly likes FAQ How to deploy to a .app for Mac & a .exe for Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "FAQ How to deploy to a .app for Mac & a .exe for Windows" Watch "FAQ How to deploy to a .app for Mac & a .exe for Windows" New topic
Author

FAQ How to deploy to a .app for Mac & a .exe for Windows

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

In the FAQ for beginners, one question is "How do I deploy to an .exe". The answer suggests that you deploy using a .jar instead.

For Windows, I plan to look into JSmooth. I hope that it will let me build .exes for Windows like Jar-Builder lets me build .apps for Mac (see below):

For Mac, I believe that we should amend the answer in the FAQ to suggest using Jar-Bundler to create a Mac OS X .app for Mac. Then you can have a custom icon besides the generic coffee-cup icon of a .jar file -- but much more importantly, it allows you to include .jar libraries into your deployed application. I understand that you can put more than one .jar file together to deploy as a single .jar, but that it isn't easy. With Jar-Bundler, it is easy. I believe that many times the best deployment is to make the deployed software self-contained with the main jar -- my software -- and then all of the jar libraries that my jar uses, in one, self-contained executable (an .exe for Windows and a .app for Max OS X).

Kaydell
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
How's this? Feel free to add Windows information once you've found something suitable.


Ping & DNS - my free Android networking tools app
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

That's great Ulf.

Kaydell
 
 
subject: FAQ How to deploy to a .app for Mac & a .exe for Windows
 
Similar Threads
How do you create a .jar file or a Mac OS X .app in Eclipse?
JAR to EXE
jar to mac os .app
to make an icon for application.
How are java programs distributed ?