Unable to load component class org.sonar.scanner.bootstrap.ScannerPluginInstaller

I have the same “Unable to load component class org.sonar.scanner.bootstrap.ScannerPluginInstaller” issue and am running 7.7. I tried to update to 8.0 but our java version is 8 and 8.0 requires 11. Suggestions

Hi @DavidVWoodSr,

you should upgrade java to version 11, is there any blocker to do that? Java 11 is LTS version, it is recommended to upgrade to it.

That is the problem. We can not upgrade yet. Is there another resolution to the issue?

Hi @DavidVWoodSr,

are you getting the same error all the time or was it just once? Did you simply try to relaunch the scanner?

You can have multiple java versions on the same machine, no need to do a system wide upgrade, and have only SonarQube using java 11.

I tried to upgrade to 8.1 and got:

  • gradle -Ptag=master sonarqube -Dspring.config.location=./application.yml -Dspring.profiles.active=bigsur -Dsonar.host.url=https://xxx.yyy/sonar

Task :copyAppProfile UP-TO-DATE
Task :copyPrecedenceProfiles UP-TO-DATE
Task :compileJava UP-TO-DATE
Task :processResources UP-TO-DATE
Task :classes UP-TO-DATE
Task :compileTestJava UP-TO-DATE
Task :processTestResources NO-SOURCE
Task :testClasses UP-TO-DATE

Task :test
2019-12-30 17:00:04 [Thread-6] INFO org.springframework.web.context.support.GenericWebApplicationContext:987 Closing org.springframework.web.context.support.GenericWebApplicationContext@5a559d0c: startup date [Mon Dec 30 08:59:55 PST 2019]; root of context hierarchy
2019-12-30 17:00:04 [Thread-6] INFO com.zaxxer.hikari.HikariDataSource:381 HikariPool-1 - Shutdown initiated…
2019-12-30 17:00:04 [Thread-6] INFO com.zaxxer.hikari.HikariDataSource:383 HikariPool-1 - Shutdown completed.

Task :sonarqube FAILED
SonarScanner will require Java 11 to run starting in SonarQube 8.x

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:sonarqube’.
  • gradle -Ptag=master sonarqube -Dspring.config.location=./application.yml -Dspring.profiles.active=bigsur -Dsonar.host.url=https://bigly.arc.nasa.gov/sonar
    Task :copyAppProfile UP-TO-DATE
    Task :copyPrecedenceProfiles UP-TO-DATE
    Task :compileJava UP-TO-DATE
    Task :processResources UP-TO-DATE
    Task :classes UP-TO-DATE
    Task :compileTestJava UP-TO-DATE
    Task :processTestResources NO-SOURCE
    Task :testClasses UP-TO-DATE

Task :test
2019-12-30 17:00:04 [Thread-6] INFO org.springframework.web.context.support.GenericWebApplicationContext:987 Closing org.springframework.web.context.support.GenericWebApplicationContext@5a559d0c: startup date [Mon Dec 30 08:59:55 PST 2019]; root of context hierarchy
2019-12-30 17:00:04 [Thread-6] INFO com.zaxxer.hikari.HikariDataSource:381 HikariPool-1 - Shutdown initiated…
2019-12-30 17:00:04 [Thread-6] INFO com.zaxxer.hikari.HikariDataSource:383 HikariPool-1 - Shutdown completed.

Task :sonarqube FAILED
SonarScanner will require Java 11 to run starting in SonarQube 8.x

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:sonarqube’.

Unable to load component class org.sonar.scanner.bootstrap.ScannerPluginInstaller

The problem is that I can not separate programs needing Java 8 from running Gradle and only using Java 11 for SonarQube.

Hi @DavidVWoodSr,

then you may consider LTS version 7.9.X which doesn’t require java 11 for the scanner part.