在Mac上将我的Java程序编译为完整 [英] Compiling my Java program to intall on Mac

查看:42
本文介绍了在Mac上将我的Java程序编译为完整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了程序.它按我想要的方式工作.我想将它分发给Windows,Linux和Mac用户,而不是作为JAR文件分发,而是作为程序,他们可以本地安装和使用.多亏了出色的程序Excelsior Jet,我才能够在Windows和Linux上做到这一点!

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!

有人可以告诉我Mac上最好的方法吗?

Can anybody tell me the best way to do this for Mac?

谢谢!

推荐答案

打包Java应用程序以便在Mac上分发 Java应用程序捆绑程序.这将使您可以将应用程序打包为Mac .app捆绑包.

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

有很多跨平台安装程序,我倾向于使用 izPack ,因为它是免费的并且具有Ant集成.

There are plenty of cross platform installers, I tend to use a izPack because it's free and has Ant integration.

这篇关于在Mac上将我的Java程序编译为完整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆