Good day, I have the following inconvenience when I want to make the compilation.
Install into server:
SonarQube 9.4
Azure DevOps Server 2019
Java SDK 17.0.2
Java SDK 11.0.12
Java SDK 11.0.13
Environment Variables:
JAVA_HOME : “C:\Program Files\Java\jdk-17.0.2\bin\java”
wrapper.config:
wrapper.java.command=C:\Program Files\Java\jdk-17.0.2\bin\java
sonarQube_running.txt (5.3 KB)
sonar_scanner_error.txt (7.1 KB)
I already tried many options, but I can’t find any answer.
You can set the License in the admin interface of Sonarqube. please note that a change to the server ID (like changing the database URI) will render the license invalid
ganncamp
(G Ann Campbell)
April 20, 2022, 1:32pm
2
Hi,
You’re saying you have (only?) Java 11 and 17 installed, but the error message indicates that another - older - version of Java is being used. So the answer is to make sure your analysis task uses Java 11. I think the simplest way is to make sure it’s in the agent’s %PATH%
.
HTH,
Ann
Hi!
I fix the issue.
change the JAVA_HOME
change the “Path”
change into "Control Panel → Programs → Java
into tab java → button find → {dir JRE} and check only the correct directory.
en el cmd coleque el comando “where java” y ya se mostraba el directorio correcto.
Restart the server and done.
muchas gracias.
system
(system)
Closed
April 27, 2022, 2:59pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.