![Create: Dreams & Desires](https://media.forgecdn.net/avatars/thumbnails/1065/286/256/256/638598847906933576_animated.gif)
gradle
Stonurd opened this issue · 3 comments
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 ?
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...