I want to rely on JAVA_HOME environment variable to install the Elasticsearch instead want to hardcode the path of java for elasticsearch.I tried hard coding the path in service.bat but it didn't work.Then i looked in some more files in the bin folder of ES elasticsearch.bat and elasticsearch.sh and figured out the the changes to only service.bat wont suffice. Just want to make sure where i need to make the changes as i have very limited knowledge of java.
Thanks