How do I create a Mac installer for my Java application?

后端 未结 7 1431
眼角桃花
眼角桃花 2021-02-06 00:12

I have created an executable JAR file for my Java application. If I double-click then it works fine. But I want to create installer for Mac OS, because I cannot give a JAR file

相关标签:
7条回答
  • 2021-02-06 00:33

    This works for me: https://github.com/Jorl17/jar2app

    For any changes made in code, I just need to move updated jar file in the folder application.app/Content/Java

    0 讨论(0)
  • 2021-02-06 00:35

    The very first hit on Google for "Mac Installer" is the Wikipedia article about the Mac Installer.

    You can click through from there to read Apple's Software Delivery Guide. It tells you in exhaustive detail everything you could possibly want to know about this.

    Please, for your own good, read up on How To Ask Questions The Smart Way. You'll get much better results that way.

    0 讨论(0)
  • 2021-02-06 00:35

    Well, if this is what you looking for, How to Create a Mac Installer for Java Application give a try, many could help.

    0 讨论(0)
  • 2021-02-06 00:36

    I'd agree that a jar should be sufficent; but maybe you want to check this (ClickInstall MacOSX 1.0.2) Installer Build Tool for OSX.

    0 讨论(0)
  • 2021-02-06 00:44

    Try jarbundler from http://informagen.com/JarBundler/. You can create a nice OSX app including icon with it. Just ship that. The user can drag this app to Application. No explicit installation step necessary.

    I use this for my projects.

    0 讨论(0)
  • 2021-02-06 00:47

    Just a comment to clear some of this up. Mac applications normally dont have installers. At all. They dont have a registry and normally you just drag the icon (which is actually a folder with the executables in a specific folder structure) into the applications folder. Thats it. Thats why if you have an executable with a nice icon and you put it in a .dmg image file nobody is gonna know the difference.

    0 讨论(0)
提交回复
热议问题