问题
I would like to know do we have any software to convert java app i mean .jar file to .dmg file (installer for mac).Thanks in Advance.
回答1:
A .dmg file is not an installer, it's a disk image file. If you want to make something available for distribution, the easiest way is to create a new folder (directory), copy all of the files and folders you want to distribute into it, and then use either the OS X Disk Utility application (in /Applications/Utilities) or the command line hdiutil utility to create a new disk image file from the contents of the folder.
回答2:
Use "Jar Bundler" in the XCode download from Apple Developer Connection.
http://developer.apple.com/technology/xcode.html
You will need to register for a free account.
Steps: http://www.centerkey.com/mac/java/
回答3:
You can use the Macify Maven Plugin.
来源:https://stackoverflow.com/questions/2174849/convert-java-app-to-mac-installer-dmg