For Java-based programs such as Maven, Jenkins, Gradle or Tomcat to run, they need to know that Java's JDK is installed. That's the purpose of the JAVA_HOME environment variable. It tells programs ...
java -version openjdk version "1.8.0_131" OpenJDK Runtime Environment (Zulu 8.21.0.1-linux64) (build 1.8.0_131-b11) OpenJDK 64-Bit Server VM (Zulu 8.21.0.1-linux64) (build 25.131-b11, mixed mode) ...
I set JAVA_HOME as a system variable correctly. As the result, I can run java cli on my terminal. But when I tried sonar-scanner cli, it returned the following; ERROR: JAVA_HOME exists but does not ...