Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"The system cannot find the path specified." when running bat file. #2274
Thank you uboness for your suggestion. Still no joy.
My current config has:
I tried the following:
I also have a jdk1.7.0 directory but I am assuming elastic looks for runtime?
I am anxious to fire up elastic!! :)
so basically, the JAVA_HOME should point to the parent directory of the bin. In the examples above, it should point to:
If you look at the elasticsearch.bat file. You can insert an echo just before the line where the program is executed and echo the whole line (it might show you where things go wrong):
echo "%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% %* -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"
after executing it, make sure that the paths (as they're echoed) indeed exist. More specifically, that one of the following exists: