[SOLVED] How can I change JDK in Preferences/Gradle in MCreator 2020.3 (because CRASH)

Started by AtomiX7_NG34 on

Topic category: Help with MCreator software

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] How can I change JDK in Preferences/Gradle in MCreator 2020.3 (because CRASH)
Tue, 03/16/2021 - 11:59 (edited)

Hello guys!

Everytime, I load a world with MCreator 2020.3, it crashes.

In 2020.2, I solved that problem, because I changed JDK to JRE in Gradle Settings.

But in 2020.3, this option is gone. :(

My PC is bad and JDK is crashing, please add this option again, so I can test my mod I worked hard for. D:

 

I did it like this to solve this problem:

Step 1: I change JDK to JRE.

Step 2: I copy tools.jar from JDK to JRE.

Step 3: I can test my mod now.

BTW, SOLVED!

Edited by AtomiX7_NG34 on Tue, 03/16/2021 - 11:59
Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or I think it's because of…
Wed, 05/27/2020 - 10:04

Or I think it's because of the JRE inside of the JDK, so I'm gonna swap it with my.

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No it doesn't work. It…
Wed, 05/27/2020 - 10:06

No it doesn't work. It crashes, even when I press "Run Client" Button

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My small crash message when…
Wed, 05/27/2020 - 10:16

My small crash message when everything is normal:

 

v36:14.21 [Server thread/DEBUG] [FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save Superflat Test
[m#
] # A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffcbae5d88f, pid=7840, tid=0x0000000000001844
#
# JRE version: OpenJDK Runtime Environment (8.0_252-b09) (build 1.8.0_252-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.252-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ig8icd64.dll+0x54d88f]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\Lara\MCreatorWorkspaces\between_worlds\run\hs_err_pid7840.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
AL lib: (EE) alc_cleanup: 1 device not closed
> Task :runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Program Files\Pylo\MCreator20203\jdk\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 4m 44s
10 actionable tasks: 4 executed, 6 up-to-date
BUILD FAILED
Task completed in 301941 milliseconds

This is usually due to bad…
Wed, 05/27/2020 - 10:35

This is usually due to bad GPU driver.

Google "Minecraft ig8icd64.dll"

Could be your AV too

 

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that's because Intel…
Wed, 05/27/2020 - 13:00

I think that's because Intel HD Graphics driver.

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, you helped me a lot …
Wed, 05/27/2020 - 17:28

Thanks, you helped me a lot :D

Now I can test my mod.

I just turned on View Bobbing and VSync.

 

Thank you very much!

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't work anymore. I…
Thu, 05/28/2020 - 16:30

It doesn't work anymore.

I already have the latest version of my GPU driver.

You need to set vsync for…
Thu, 05/28/2020 - 16:33

You need to set vsync for each workspace

You can still set java_home by editing <user home>/.mcreator/preferences too, but do this on own risk as this is unsupported feature.

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"gradle": {     …
Fri, 05/29/2020 - 12:22

"gradle": {
    "compileOnSave": true,
    "xms": 325,
    "xmx": 824,
    "offline": false
    "java_home": "C:\Program Files\Java\jre1.8.0_241\bin\java.exe"

 

Like this?

What bin file does MCreator need?

No, it is now in the hidden…
Fri, 05/29/2020 - 13:37

No, it is now in the hidden section now:

    "notifyForPatches": true
  },
  "hidden": {
    "workspaceLargeIcons": true,
    "fullScreen": false,
...

    "java_home": "<YOUR PATH HERE>"
  }
}

 

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh that makes sense, because…
Fri, 05/29/2020 - 16:13

Oh that makes sense, because when I started MCreator, it disappeared from the gradle section.

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh it disappeared from the…
Fri, 05/29/2020 - 16:17

Oh it disappeared from the hidden section.