Started Installing sonarqube using Install the server
My os is Ubuntu 20.04.2 LTS, I installed SonarQube version 10.1.0.73491, I am not a root user, I have set
SONAR_JAVA_PATH=/usr/lib/jvm/java-11-openjdk-amd64/bin/java
although my default java is 1.8 for other projects.
Below are my config file for sonar
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/orcl
sonar.web.javaAdditionalOpts=-server
sonar.web.host=127.0.0.1
sonar.web.context=/sonarqube
sonar.java.jdkHome=/usr/lib/jvm/java-11-openjdk-amd64
sonar.java.source=11
On running
sudo sh linux-x86-64/sonar.sh start
I get
/usr/bin/java
Starting SonarQube...
Started SonarQube.
But I cant access it on 9090 port and on checking status
sudo sh linux-x86-64/sonar.sh status
I get
/usr/bin/java
Removed stale pid file: ./SonarQube.pid
SonarQube is not running.
On using console command
sudo sh linux-x86-64/sonar.sh console
it gives
/usr/bin/java
Running SonarQube...
Error: LinkageError occurred while loading main class org.sonar.application.App
java.lang.UnsupportedClassVersionError: org/sonar/application/App has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
but I have already set `SONAR_JAVA_PATH varible as mentioned above.
Also log files are not created, any help appreciated.