Jorl17 / jar2app

Convert any Java jar to a Mac OS X .App bundle. No external tools needed, no funky parameters, it just works.
GNU General Public License v2.0
414 stars 56 forks source link

Fix launcher to work on M1 macs with modern JDK/JVM version #55

Open wvdschel opened 2 years ago

wvdschel commented 2 years ago

I had some trouble running Apps generated with this repository on an M1 Mac running macOS 12.3.1.

Because of the bundled JavaAppLauncher binary lacking any source code, I was unable to investigate whether this was because of the ARM processor, the newer OS, or the newer Java version.

I've replaced the binary with a bash script that works on my machine. I've tested this with the Java version provided by the Adoptium/Temurin project (version: OpenJDK18U-jdk_aarch64_mac_hotspot_18_36.pkg).

I've tested it with both bundling the JVM and using the system JVM, as well as the older AdoptOpenJDK 8 version.

I'm unable to test this on x86 Macs, or older versions of the OS, as I don't have access to any of those.

jakebathman commented 1 month ago

Hey from the future on an M3 MBP. Thanks for this update, it works great for my simple personal use of wanting an app binary for a java thing (in my case, Chatty, the twitch chat client).

Sad the jar2app is abandoned, but that's how open source goes. Appreciate your work.