简体   繁体   English

在Mac上将我的Java程序编译为完整

[英]Compiling my Java program to intall on Mac

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. 我想将它分发给Windows,Linux和Mac用户,而不是作为JAR文件分发,而是作为程序,他们可以本地安装和使用。 I was able to do this for Windows and Linux thanks to the excellent program, Excelsior Jet! 多亏了出色的程序Excelsior Jet,我才能够在Windows和Linux上做到这一点!

Can anybody tell me the best way to do this for Mac? 谁能告诉我针对Mac的最佳方法?

Thanks! 谢谢!

This program can create executables for Linux, Windows, and Mac OSX. 该程序可以为Linux,Windows和Mac OSX创建可执行文件。

http://launch4j.sourceforge.net/ http://launch4j.sourceforge.net/

Start with Packaging a Java App for Distribution on a Mac and Java Application Bundler . 首先打包Java应用程序以在MacJava Application Bundler 上分发 This will allow you to package your application as a Mac .app bundle. 这将允许您将应用程序打包为Mac .app捆绑包。

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. 有很多跨平台安装程序,我倾向于使用izPack,因为它是免费的并且具有Ant集成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM