Sonarlint for eclipse 6.2.0.37299 + JDK 17 + SoanrQube 7.9.3 does not work (JavaScriptSensor error)

Hi,

I am using below configuration, while analysis from eclipse (using sonarlint plugin) when I connect to SoanrQube 7.9.3, I get error “java.lang.IllegalStateException: Unable to load component class …”, but if i connect to SoanrQube 8.9.6 not getting any error, could you please help me how to avoid issue with SonarQube 7.9.3.

Configuration Gives error:
sonarlint for eclipse 6.2.0.37299
jdk 17
SoanrQube 7.9.3

Configuration Not gives error:
sonarlint for eclipse 6.2.0.37299
jdk 17
SoanrQube 8.9.6

Exception:
“java.lang.IllegalStateException: Unable to load component class org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor”
“Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.plugins.javascript.JavaScriptSensor”
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer",

Thanks,
Rukesh.

Hey there.

SonarQube v7.9.3 is an unsupported version of SonarQube, and does not declare compatibility with Java 17 (which came out long after the release of SonarQUbe v7.9.3). You should use SonarQube v8.9.x.