Mac OS java issue for jar files

I have already developed setup.exe for Windows with features such as automatic detection of the JRE version, automatic installation of the required version of the JRE, autorun at Windows startup, etc. I made this exe from a jar file (the jar file did not have the above functions added later when converting JAR to EXE. Now I was wondering if I could somehow convert exe to DMG, APP or JAR, or I can add the above functions only to your JAR file.) By default, the Mac comes with Java version 5, and my application requires a minimum version of Java version 6 to run

+3
source share
2 answers

The usual way to distribute a Java application on a Mac is different from Windows. You do not need your own binary to run a Java application on a Mac, because you can link it to an application file (.app).

The JarBundler, which is part of the Xcode Deveoper Tools, helps you insert your JAR file into a new .app file. You will also indicate your icon at this stage and in the main class.

An application file is really a folder. You can open the .app file as a folder by clicking on the application file and selecting "Show Package Contents" in the pop-up menu. Sometimes you may need to configure the Info.plist file in the application, as there are many options. The Apple Developer website has full documentation for the Info.plist file.

, , PackageMaker, Xcode.

, (DMG) DiskUtility, "".

Java, Snow Leopard, Java 6 Intel Mac. Java 6, , Intel Mac Snow Leopard. , SoyLatte , Java. 32- Java 6 .

+4

Java 1.6 Mac. , .

dmg. mac os x install cd - , . Jar Bundler, jar Apple.app(exe mac). dmg, ant target.

+2

Source: https://habr.com/ru/post/1710997/


All Articles