Explicitly set $JAVA_HOME for elasticsearch process.