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".
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