Convert .Jar to an Osx Executable

Convert .jar to an OSX executable?

Yes, on Mac OS X there is a program called Jar Bundler that is installed when you install the free (assuming that you already own a copy of Mac OS X) Xcode Developer Tools that allows you to bundle a JAR file inside a native Mac OS X "*.app" application bundle with a nice and shiny icon just like other apps.

Update
The JAR bundler doesn't exist on later versions of OS X. As a workaround, you can manually create an OS X project that invokes Java. Or, there are a variety of build system extensions that do a similar thing; for example, the gradle-macappbundle plugin for Gradle will create such a wrapper app.

MacOS executable of a jar file

Apple has removed the ability to create Java applications in Xcode as they are trying to have developers use Cocoa exclusively. You could potentially get an old version of Xcode though.

If you're interested in Launch4J, it looks like that will create a native wrapper for your Java program for Mac OS X as well. So if you're comfortable with that, I'd just use Launch4J.

Note that Launch4J needs some tweaks for Lion (10.7) and beyond: http://code.google.com/p/gradle-launch4j/wiki/MacOSXLion



Related Topics



Leave a reply



Submit