Reputation: 453
I am trying to install elasticsearch on Windows7.
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/running-elasticsearch.html
I installed Java in following folder
C:\java
If not set JAVA_HOME and running elasticsearch, getting error that JAVA_HOME is not set.
Set JAVA_HOME to C:\java\bin
When try to run elasticsearch getting this error:
The system cannot find the path specified.
Upvotes: 0
Views: 2824
Reputation: 669
generally the common practice is as follows:
JAVA_HOME
should be path to the root java directory, eg. JAVA_HOME=C:\java
and in the PATH there should be %JAVA_HOME%\bin
.
Upvotes: 4