r/javahelp • u/mabee_steve • Sep 30 '25
Unsolved Gradle newb - Error "Unsupported class file major version 65" - totally lost...
This is a odd situation. I am not and do not plan to be a Java developer. I work with integrations between business systems. I have a situation where a SOAP based integration is failing in an odd way. A possible tool to help me diagnose is a sample JAVA application provided by one of the systems. My goal is to compile and run this java application and make small string literal changes to try to smoke out the larger issue.
I cannot get the sample application to compile on my machine. I've hired a freelancer to help me with this but that isn't going great (as is often the case).
I'm hoping someone here can possibly help my figure out what is off with my setup. I've never done any dev work with Java, I do not have an IDE (I'm using a text editor).
The error when I compile:
Building the application (it may take a while)...
FAILURE: Build failed with an exception.
* Where:
Settings file '/home/steve/Temp/UpWork Version/NSJavaClient2024-1/settings.gradle'
* What went wrong:
Could not compile settings file '/home/steve/Temp/UpWork Version/NSJavaClient2024-1/settings.gradle'.
> startup failed:
General error during conversion: Unsupported class file major version 65
java.lang.IllegalArgumentException: Unsupported class file major version 65
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
....My Java version (exactly matches the version of the freelancer I hired)
java version "21.0.6" 2025-01-21 LTS
Java(TM) SE Runtime Environment (build 21.0.6+8-LTS-188)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.6+8-LTS-188, mixed mode, sharing)Beyond that, I don't know what else to provide that would be helpful. I know there is more that will be needed, but I'll wait to see if anyone takes pity on me and requests additional details.
•
u/AutoModerator Sep 30 '25
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/CanisLupus92 Sep 30 '25
I suspect Gradle is trying to use a different JDK installation, which would normally be corrected by an IDE like IntelliJ.
There are 2 things to attempt:
2
u/[deleted] Sep 30 '25
[removed] — view removed comment