Can not get error resolved: Java 17 or more recent is required to run

Please provide

  • Operating system:
  • SonarQube for VS Code plugin version: 4.13.2
  • Programming language you’re coding in: javascript
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Community Build 9.9.8

And a thorough description of the problem / question:

I did also set:

Hi,

Welcome to the community!

there are two parts of the answer:

a) you are using Java 7 (1.7) and not Java 17 in your settings.json! This is quiet outdated and out of support. You can still build your code with Java 7 and analyze with Java 17 - see the docs. But probably you should try to update the Java version of your application to a current LTS of OpenJDK, as Java 7 had its EOL in July 2022.

b) Only the latest version of SonarQube Community Build is considered active, so you’ll need to upgrade and see if the situation is still replicable before we can help you.

Your upgrade path is:

xxx → 8.9.10 → 9.9.8 → 25.3

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

1 Like