Cannot launch MCreator on macOS

Published by krues8dr on Sun, 05/06/2018 - 14:09
Status
Works as designed
Type
Product/platform
MCreator/macOS
Priority
Normal
Issue description

I'm having a similar problem to 41063 where MCreator crashes immediately on launch. However, unlike that issue, (I think) I'm running the correct version of the JDK.  MCreator version 1.7.5 works fine, only version 1.7.9 crashes immediately.

java 1.8.0_45, javac 1.8.0_45, macOS 10.11.6

Here's the error when running in Terminal:

[Sun May 06 09:58:28 EDT 2018] [Launcher] Java specification version: 1.8
[Sun May 06 09:58:28 EDT 2018] Exception in thread "main" [Sun May 06 09:58:28 EDT 2018] java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/sun/javafx/webkit/WebConsoleListener
[Sun May 06 09:58:28 EDT 2018] 	at co.pylo.mcreator.Launcher.main(Unknown Source)
[Sun May 06 09:58:28 EDT 2018] Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/webkit/WebConsoleListener
[Sun May 06 09:58:28 EDT 2018] 	... 1 more
[Sun May 06 09:58:28 EDT 2018] Caused by: java.lang.ClassNotFoundException: com.sun.javafx.webkit.WebConsoleListener
[Sun May 06 09:58:28 EDT 2018] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[Sun May 06 09:58:28 EDT 2018] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[Sun May 06 09:58:28 EDT 2018] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[Sun May 06 09:58:28 EDT 2018] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[Sun May 06 09:58:28 EDT 2018] 	... 1 more

 

Issue comments

MCreator only supports Java 8. Please install the latest Java 8 (8u162) as default Java on your Mac.

Updating to Java 1.8.0_171 seems to have resolved the issue, thanks for your help!  It might be worth updating the installation instructions to clarify the specific minimum version of Java 8 that's needed, as 1.8.0_45 is apparently too old?



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.