I’m trying to run SonarLint (6.2) on an old Eclipse instance with Java 1.8 (due to very old plugins), project bound to SonarQube Developer Edition 9.9. When analyzing file, I can see in the SonarLint log:
Plugin 'HTML Code Quality and Security' requires JRE 11 while current is 1.8. Skip loading it.
Plugin 'Java Code Quality and Security' requires JRE 11 while current is 1.8. Skip loading it.
Plugin 'JavaScript/TypeScript/CSS Code Quality and Security' requires JRE 11 while current is 1.8. Skip loading it.
Plugin 'PHP Code Quality and Security' requires JRE 11 while current is 1.8. Skip loading it.
Plugin 'Python Code Quality and Security' requires JRE 11 while current is 1.8. Skip loading it.
followed by:
Load plugins (done) | time=10ms
Unable to start the SonarLint engine
java.lang.IllegalStateException: The plugin [kotlin] does not support Java 1.8.0_101
at org.sonarsource.sonarlint.core.plugin.PluginInstancesLoader.instantiatePluginClasses(PluginInstancesLoader.java:145)
at org.sonarsource.sonarlint.core.plugin.PluginInstancesLoader.load(PluginInstancesLoader.java:75)
at org.sonarsource.sonarlint.core.plugin.PluginRepository.start(PluginRepository.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Is there anything missing in the Kotlin plugin to flag it as non-compatible with Java 1.8 ? I know that Java 11 is the standard, but I can’t easily upgrade the Java version in this case…
Gilles