sonar- Unrecognized option: --add-exports=java.base/jdk.inCould not create the Java Virtual Machine.

官网下载最新的sonarqube-9.7.1版本提示:运行StartSonar.bat时报

Running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 1    | Unrecognized option: --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
jvm 1    | Error: Could not create the Java Virtual Machine.
jvm 1    | Error: A fatal exception has occurred. Program will exit.

搜索资料后发现 6.6以上版本必须用jdk11版本,但本机时8版本 不想更新 找到了6.6.版本

https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.6.zip

下载后再运行

浏览器打开:localhost:9000