LinkageError occurred while loading main class org.sonar.application.App java.lang.Unsupport

Hi I am using SonarQube version 10.1
JDK version - 17
Initially I was able to run the server successfully but today. I am facing this issue. I am getting this below error

Starting SonarQube…
Error: LinkageError occurred while loading main class org.sonar.application.App
java.lang.UnsupportedClassVersionError: org/sonar/application/App has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Please help me to resolve this

Hi,

Welcome to the community!

This is Java’s painfully obscure way of saying the version of Java you’re trying to run with isn’t compatible with the version of Java the application was compiled with.

Based on this, you’re running Java 17, so my guess is you’ve accidentally started up an old version of SonarQube that won’t run on Java 17.

 
HTH,
Ann

I got the same issues while using JAVA version 11 with Sonarqube version 5.0.1.3006.
After upgrading to the latest Java version 21 solved my problems.

1 Like