Setup fails. (Compiled by recent Java 65, instead of 61)

Started by VioletPyre on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Setup fails. (Compiled by recent Java 65, instead of 61)

I'm having the infuriating issue i've been followed with everywhere.. I do not know how to solve this. I was fine just before with MCreator 2023.3 (i think it was)
But i decided to update, needing 1.21 for my mod. I went with 2024.3, but now i am getting the following error :
"... Has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0"

Here's the copied error.

Executing Gradle synchronization tasks
Build info: MCreator 2024.3.42716, forge-1.20.1, 64-bit, 65277 MB, Windows 10, JVM 23.0.1, JAVA_HOME: F:\Progammes Place\MCreator\jdk, started on: 2024-12-14-07:09:07
Loaded APIs: geckolib

FAILURE: Build failed with an exception.
* What went wrong:
net/mcreator/gradle/GradleSyncBuildAction has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
* 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.
BUILD FAILED in 1s

BUILD FAILED
Task completed in 1 second

As a backstory, the Java error hit me multiple times in the face with Dedicated servers or Minecraft itself, or even the launchers. I had tried EVERYTHING.. i tried even downloading every single Java versions. I finally understand why coders say Java is pants.. It really is. And i'm not coding. I'm just facing its issues probably because it is much of a mess in there. 

I just don't want MCreator joining the fest of 'It's either me, Minecraft or the Server' that works. (Yes, only ONE of them work currently, being the launcher and minecraft. Both MCreator and Servers won't work right now with the same issue.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For some reason i didn't try…
Sat, 12/14/2024 - 16:07

For some reason i didn't try that. I did try to re-install Java 17 (61) and clear the cache + restart the PC 2 or 3 times. Maybe something as silly as re-downloading it could help indeed.

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yep. Found out a weird thing…
Sat, 12/14/2024 - 16:15

Yep. Found out a weird thing when downloading it, being that some old files stayed (jdk) because they refused uninstalling since i had already launched MCreator today. Now that it's been taken care of, it worked beautifully. I feel really silly now..

Thanks a lot!