Mcreator fails to open

Status
Works as designed
Type
Product/platform
MCreator/macOS
Priority
Normal
Issue description

I recently downloaded Mcreator as I wanted to create my own mods, however it does not open. It loads up fine, however it has a big red X next to 'Caching decompiled code'. Another window also appears, stating 'MCreator setup failed! The setup of MCreator failed. Based on the suggestions you got, try to fix any errors you have (I don't know what errors there could be that stop it from working) and run it again. It will try to setup itself again. If you don't manage to fix the problem (which I haven't), send an open ticket on https://mcreator.net/tracker (which is what I had to resort to) and we will try to help you out. ERROR CODE: MCREATOR_SETUP_FAILED' I do not know how to fix this situation, so any help will be greatly appreciated. I have also looked around for anything similar but I haven't found anything that relates to this

    Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies Build info: MCreator 1.8.0, 64-bit, 4096 MB, Mac OS X, JVM 1.8.0_181 No Java runtime present, requesting install. Task completed with return code 1 in 13391 milliseconds

Issue comments

Click the Copy error log button on this message and paste the full error log in the original ticket by editing it. Thanks!

Yikes, there's a lot of complicated things on that page (And I'm not the most tech savvy guy) So I have no idea what to do. It looks to be a terminal kind of thing, but then again I could be wrong

Yes, you need to do this in the terminal. Using Mac for programming or any development related tasks and using a terminal are two expected things.

At the end, when I use the 'echo JAVA_HOME' command, it says 'usr/libexec/java_home'. Is this to be expected, or have I done something wrong?

It should point to the path where the root of the Java 8 installation is located. You might want to search for a YouTube tutorial if this might be easier to understand.

I've done everything right (it now says it's '/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home', which is what the original website said) However, should the '10.0.2' read '1.8' to open the latest version of Mcreator? On a side note, the program won't even open now, the console just says 'Preferences may have changed, checking for any relevant changes'. I have no idea how to get around this.

Alright, I replaced java 10, so now I have java 8. However when I run the commands in terminal, it's still sending it to the 10.0.2 location.

I tried these, but it says there is nothing of that version. I have java 8 update 181, so what would I put into terminal for my version?

Mcreator has finally managed to open, there is one more error though

 

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 4096 MB, Mac OS X, JVM 1.8.0_181
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /Users/jameswinston/.mcreator/gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk/gradle-2.14-bin.zip to /Users/jameswinston/.mcreator/gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk
Set executable permissions for: /Users/jameswinston/.mcreator/gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk/gradle-2.14/bin/gradle
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '10.0.2'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Task completed with return code 1 in 223192 milliseconds

Go to /Users/jameswinston/.mcreator/ and delete gradle folder. Then make sure to run the MCreator as jameswinston user so you have all the required permissions.

Done that, but now it says:

 

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 4096 MB, Mac OS X, JVM 1.8.0_181
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '10.0.2'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Task completed with return code 1 in 37655 milliseconds

This means your default Java is still Java 10. How about uninstalling Java 10 and only having Java 8 on your computer?

I uninstalled java from my mac completely, and then downloaded the JDK. The file still points to Java 10, though.



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.