intellij idea - How do I fix "Unsupported class file major version 68"? - Stack Overflow

admin2025-04-08  1

I keep looking things up but can't find an answer for 68 specifically. I used the debug option and this is the feedback, I have no idea what half of this is or what went wrong. I am trying to start using intellij today to start learning how to use it in general, but this issue keeps popping up now that I've managed to fix the JDK error.

I don't have enough rep to embed pictures yet so here's the link to the screenshot of the feedback.

[1: .png][1]

I've tried all of the options it gave me and all of them ended up with errors, and the 'more help' thing isn't helpful in the slightest.

I keep looking things up but can't find an answer for 68 specifically. I used the debug option and this is the feedback, I have no idea what half of this is or what went wrong. I am trying to start using intellij today to start learning how to use it in general, but this issue keeps popping up now that I've managed to fix the JDK error.

I don't have enough rep to embed pictures yet so here's the link to the screenshot of the feedback.

[1: https://i.sstatic/xFy2xyti.png][1]

I've tried all of the options it gave me and all of them ended up with errors, and the 'more help' thing isn't helpful in the slightest.

Share Improve this question edited Mar 26 at 20:22 Munchies Muller asked Mar 26 at 20:14 Munchies MullerMunchies Muller 12 bronze badges 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Mar 27 at 11:03
Add a comment  | 

1 Answer 1

Reset to default 1

What version of Java is your IntelliJ project using? The error you received is almost certainly caused by an unsupported Java version. I would try Java 17.

Edit: Major Version 68 is Java 24, if you're working with an older project this is almost certainly not supported. Try Java 17.

Here's some documentation on how to change your SDK.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744127482a232529.html

最新回复(0)