Captain-Chaos / WorldPainter

WorldPainter is an interactive graphical map generator for the indie game Minecraft.
http://www.worldpainter.net/
GNU General Public License v3.0
341 stars 58 forks source link

Installer fails to launch on Apple Silicon Macs #219

Closed ianmartinez closed 1 year ago

ianmartinez commented 2 years ago

I have tried installing with both the latest JRE 8 and the JRE 17 and both fail on Apple Silicon (M1 Max) with this message:

Screen Shot 2021-11-19 at 9 44 01 AM

Whereas on my old Intel based Macbook with an identical Java configuration it runs just fine:

Screen Shot 2021-11-19 at 9 50 07 AM

With newer releases of install4j, the devs appear to address this. Using also the jpackage packager included with the JDK should also work, as I've used it in the past.

Captain-Chaos commented 2 years ago

Are you sure that is a recent download? I recently fixed a problem where it required exactly Java 8, instead of Java 8 or later. I have already tried to upgrade to the latest version of Install4J, but encountered problems, but if necessary I will look into it again.

ianmartinez commented 2 years ago

Yes this is the latest version of WorldPainter from the website and the latest version of Java 8 (Update 311) downloaded from Oracle's site.

Captain-Chaos commented 2 years ago

Can you try it with the latest version of Java, while I look into it? Perhaps that will fix it in the short term. I'm pretty sure I've heard of people running WorldPainter on M1 Macs. Unfortunately I don't have access to one myself, so I can't test it.

Captain-Chaos commented 2 years ago

Also, is that the Intel or ARM version of Java (assuming Oracle provides both; I don't know if that is the case)?

ianmartinez commented 2 years ago

Sadly, it doesn't appear to run with the latest Java either (Java 17). There's not a release of Java 8 that's specific to ARM but there is on Java 17:

Screen Shot 2021-11-22 at 8 50 50 AM
andrazverdnik commented 2 years ago

Any news on this? I'm trying to run this on an M1 mac and once I installed both JRE and JDK the installer started working and installed the app.

When I launch the app though, it still returns the exact same error

Screenshot 2022-03-31 at 19 45 14

.

Captain-Chaos commented 2 years ago

Sorry I never got back to you. Is this still relevant?

andrazverdnik commented 1 year ago

Yes

Captain-Chaos commented 1 year ago

Unfortunately I don't have a Mac, let alone an M1 Mac, so this is very hard to debug for me. Especially since other people with M1 Macs have it working.

Captain-Chaos commented 1 year ago

Could you both try installing this JDK: https://www.azul.com/downloads/?version=java-17-lts&os=macos&architecture=arm-64-bit&package=jdk

Remove all other version of Java. This seems to be one of the most linked to M1 Java environments. Let me know if you can install and run WorldPainter on this.

ImaSimp-MrYumYum commented 1 year ago

Had the same issue, installing the Azul JDK fixed it. Thanks for the support.

Captain-Chaos commented 1 year ago

OK, so it seems the problem is that no M1 version of Java is installed. Other than the Azul one linked above, it appears that Oracle also has one these days: https://www.oracle.com/java/technologies/downloads/#jdk17-mac

I'm going to close this issue since it's not a bug in WorldPainter, but I have tried to improve the download page to hopefully better guide people to the correct version of Java.