Stuck at cache

Upvotes: 0
Issue description

I am trying to open MCreator on my mac and it it stuck on caching code for performance. The other tries I've had with opening it it said it couldn't open somehow with my JDK 8, but I'm not really sure what the problem really is or what I should do.

For some reason it won't let me copy the console data but there are 3 errors and I put them in order:

• 1st one is hidden but I have 1 line: *Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

• 2nd one says: FAILURE: Build failed with an exception. *What went wrong: Could not determine java version from '9.0.4.'. *Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

• Last one says: :fixMcSources :applySourcePatches :remapMcSources :recompileMc FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':recompileMc'. > Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" *Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. *Get more help at https://help.gradle.org BUILD FAILED in 6m 51s.

Anyone know the solution to this issue? I've tried to open this like 6 months ago and it didn't work so I'm trying again today and I would really like to create a mod.

Issue comments

Submitted by Klemen on Wed, 03/13/2019 - 18:33

Yout JAVA_GOME is not pointing to JDK as this error log says:

Execution failed for task ':recompileMc'. > Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"

And next time paste the whole error log as you can't know which parts are important.

To fix this, set your JAVA_HOME to point to JDK 8.

In MCreator 1.8.3 you won't have to do this as MCreator will come with JDK 8 bundled on Mac too.