I read in the documentation of Sonarqube 9.9 LTS the following when it comes to Java requirements:
Server: Open JDK 17
Scanner: Open JDK 11 / Open JDK 17
Am I correct in my understanding that Sonarqube 9.9 LTS minimum java requirements to run the actual application requires Open JDK 17 but what’s with the scanner? Is the scanner responsible in doing the analysis of the code that is being sent to it and generates a report? But if there’s a code written in Open JDK 1.8 for example, Sonarqube 9.9 LTS will still be able to analyze the code am I correct?
Java 17 is required to run the server. You can perform analysis - on your build agent - with either Java 11 or 17.
But you can compile with or to any version of Java that you want and as long as you’re running analysis with Java 11 or 17 you should be good to go.
We recently ported our documentation to a new platform, and since SonarQube 9.5 was EOL when 9.6 was released, that version of the docs didn’t get ported.