Which version of sonnar scanner support java 17?

Hey @Nithish_Anand_B

I can only recommend that you use the latest version of Community Build (v24.12).

This version, like any version since SonarQube v10.4 requires Java 17 to run the scanner, but as always you can pick the version of Java you want to build your project and then switch over to Java 17 to run the scanner.

The latest versions of the scanner, combined with the latest versions of SonarQube, even support JRE auto-provisioning (using whatever JRE you want to start the scanner, which downloads the right JRE from your SonarQube server).

All of this is outlined in the documentation on Scanner Environment.