Compiling my Java program to intall on Mac

三世轮回 提交于 2020-01-05 10:27:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!