Create: Dreams & Desires

Create: Dreams & Desires

2M Downloads

gradle

Stonurd opened this issue · 3 comments

commented

I'm unable to compile the mod there is problem with gradle (for the branche 1.21.1 rewrite) I get this:

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65
Unsupported class file major version 65

I compiled another 1.20.1 mod with its gradlew in version 7.5 and java 21, this one is 8.1.1 and java 21, I trying to get out of this problem for hours, I am the only one with this problem ?

commented

Uses java 17

commented

I fixed it by changing java home in terminal like this : setx /m JAVA_HOME "PATHTOTHEJDKFOLDER"
It worked I compiled and tested in minecraft...

BUT as I have every problem in the universe of possibility, I just reCloned to start anew and gradlew is now ded :

FAILURE: Build failed with an exception.

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    ........
    Error occurred during initialization of VM
    Could not reserve enough space for 3145728KB object heap

Invalid maximum heap size: -Xmx5G
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I have every RAM needed, I increased it to 5Gb...

commented

I found a way: reputted the previous java home (oracle jdk 21) > emptied recycle bin (full of my mess of same exact file/folder left at the exact same location) > recloned > EVERYTHING WORK FINE NOW, AND WITH JAVA 21…

The issue is set, thank.