问题
I've written my program. It works as I want it to. I want to distribute it to Windows, Linux, and Mac users, not as a JAR file, but as a program they can install and use natively. I was able to do this for Windows and Linux thanks to the excellent program, Excelsior Jet!
Can anybody tell me the best way to do this for Mac?
Thanks!
回答1:
Start with Packaging a Java App for Distribution on a Mac and Java Application Bundler. This will allow you to package your application as a Mac .app bundle.
Then you could look at something like this as an example
There are plenty of cross platform installers, I tend to use a izPack because it's free and has Ant integration.
回答2:
This program can create executables for Linux, Windows, and Mac OSX.
http://launch4j.sourceforge.net/
来源:https://stackoverflow.com/questions/28520758/compiling-my-java-program-to-intall-on-mac