Elasticsearch still running off of the included java even after JAVA_HOME is set

Elasticsearch still running off of the included java even after JAVA_HOME is set. Change the Java home and every other program is finding the correct version of JAVA. Where is the config that sets java. Everything I have read says "change the java home and restart the service".

Hi,

how did you install Elasticsearch and which version are you running? Just as an example, if you have installed it via the Debian package, the docs mention you need to set JAVA_HOME in /etc/default/elasticsearch.

Daniel