I have a stand alone java application that will be used in a macintosh system and I don’t want to deliver the application as a jar file considering that its source code can be de-compiled. So, my intention is to convert the jar file into some sort of executable that can be run in MacOS. Is there any way to achieve this? I know that Launch4J generates the windows executable of a jar file. What I need is such a tool that enables this in MacOS. Thnaks.
Share
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