[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

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
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"java_home" just disappeared…
Mon, 06/08/2020 - 12:54

"java_home" just disappeared from "hidden"-section.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, it doesn't work, it…
Wed, 06/24/2020 - 14:12

No, it doesn't work, it disappeared again.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But it says, that I need to…
Wed, 06/24/2020 - 14:46

But it says, that I need to have Java JRE 1.8.0_251, but I have 241.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No,it says 252, but its JDK…
Wed, 06/24/2020 - 14:52

No,it says 252, but its JDK. I'll just take the JRE 251 one.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok i'll try it, but i need…
Thu, 06/25/2020 - 11:37

ok i'll try it, but i need to copy tools.jar into lib

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, it doesn't work, it…
Thu, 06/25/2020 - 11:44

No, it doesn't work, it keeps crashing. Or do I have the wrong JDK replaced with the old one? Because I choosed JDK 14.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So please add this option…
Thu, 06/25/2020 - 11:48

So please add this option again (Preferences/Gradle/Java_Home), because it's getting removed from the Preferences file, when I even start MCreator 2020.3. Maybe in 2020.4 update or next snapshot?

No you can't use JDK 14,…
Thu, 06/25/2020 - 12:30

No you can't use JDK 14, this is exactly the reason I removed this as people selected all sorts of wrong JDK here. This will not be added back.

Try this:

"java_home": {
    "path": "C:/Program Files/Java/jre1.8.0_241/bin/
java.exe"
}

And do not open older versions of MCR after you set this as they will reset this.