The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

.JAR to .DMG on Windows

Hi, I use only Windows, and I want to make my Java apps available to people with macs. On Windows, I just have the installer create a shortcut to the file and set the shortcut's icon. If I had a mac, I would use the Jar Bundler tool to 'bundle' the .jar into a .dmg file. Can I do this on Windows?
Ian Sinke Send private email
Tuesday, July 31, 2007
 
 
To the best of my knowledge, Jar Bundler is released by Apple and is OS X only. You would need to find an equivalent tool on Windows, possibly exe4j to create the binary files and something else to insert those files into a .dmg image file.  I suspect Ant would be very useful here.

I honestly don't have a definite answer. Once you reach a certain level of sophistication with your Java programs, you will want to test them on OS X. Once you've found a test machine and some means of getting your files there for testing, it's trivial to convert them into an image file using Jar Bundler.

Err... that's meant to be interpreted as in "don't waste your time" trying to find a pure Windows solution just so that you can sell to the Macintosh market. Just package your jar file normally and emphasize you're offering a solution that works on Windows, Linux, BSD, Solaris and OS X with no user-made adjustments. People will then forgive you for not getting every little Mac specific detail correct.
TheDavid
Tuesday, July 31, 2007
 
 
You could try JSmooth:

http://jsmooth.sourceforge.net/

It's not as "nice" as Jar Bundler on os x in the sense that you don't get a single file to distribute at the end, but it gets you pretty close with a nice Java version checking/downloading mechanism.
Hassan
Thursday, August 02, 2007
 
 
Just have something that runs as a single .jar file, and macs will run it natively.  When a user double-clicks a .jar on a mac, the mac (behind the scenes) runs the equivalent java -jar <file> on it.

Specifically, it runs the Jar Launcher.
http://en.wikipedia.org/wiki/Jar_Launcher

Just make sure you've got the normal Main-Class attributes setup in your manifest.
http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
Lally Singh Send private email
Tuesday, August 07, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz