SonarQube Elastic Search deprecation warning - JAVA HOME

SonarQube CE 8.9.0 LTS, upgrade from 7.9.6

On startup logs show:
INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory ./sonarqube-…/temp
INFO app[] Elasticsearch listening on [HTTP:, TCP:]
INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [./sonarqube-]: ./sonarqube-
warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
INFO app[o.s.a.SchedulerImpl] Process[es] is up

There is no reference in bundled or to ES_JAVA_HOME.

In fact, only reference is the check in sonarqube-

Hey there.

This is an warning internal to how SonarQube bundles Elasticsearch which you can ignore. Nevertheless, I’ll ping the right person to find out if we ever plan to take care of this.

Indeed, we could fix that warning, thanks for raising this @ianw , I’ve created a ticket for it: SONAR-14960

If you are reviewing the use of JAVA_HOME, perhaps you can also consider the overall JAVA usage and review : CMDJAVA loop issue ? When I raised that issue, it was more “does not work”, while now thoughts are also why is it not using JAVA_HOME?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.