KamikazeJAM
04/28/2024, 9:00 AMCaused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
65 is Java 21, and my java version in my env Path is 21, my JAVA_HOME is 21, gradle confirms it's using 21, but something about this configuration throws it off.
From some debugging I was able to reproduce the issue in a smaller test project, and confirm that the relocate
command as a part of the shadow plugin triggers this error during the build process.
Any help would be greatly appreciated. I need to use the relocate part of shadowJar, which seems to be the issue (removing that line allows it to build correctly)
I'm using java 21 (Oracle OpenJDK 21.0.3) on my Windows 11 system, if that helps.
Oh and I'm using Gradle 8.7, with shadow 8.1.1 (both latest)KamikazeJAM
04/28/2024, 9:06 AM./gradlew build
inside that project)ephemient
04/28/2024, 9:43 AM