Installation of Elastic search 2.0

Hi,
I am trying to install Elasticsearch on Window 7. I have installed JDK 1.8.0_60 and JRE 1.8.0_66.

I have set the JAVA_HOME to C:\Program Files\Java\jdk1.8.0_60\bin &
PATH to C:\Program Files\Java\jre1.8.0_66\bin

Executing java -version on the command prompt gives the below output:
C:\Users\gn00342691>java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
Java HotSpot(TM) Client VM (build 25.66-b18, mixed mode)

C:\Users\gn00342691>echo $JAVA_HOME
$JAVA_HOME

When I execute the elasticsearch batch file from the dump I get the below error and setup does not start:
D:\Hinjewadi\Office\es200\bin>elasticsearch.bat
The system cannot find the path specified.

Can you please help in resolving this or point out where I am going wrong.

Thanks,
Gaurav

It's probably unrelated, but echo $JAVA_HOME is Unix. The equivalent on Windows would be echo %JAVA_HOME%. Hence, it's not obvious that JAVA_HOME is set.

Hi,
I'm not a Windows person, but it looks like JAVA_HOME is not set correctly. As far as I know you use echo %JAVA_HOME% on windows to check the variable.

@magnusbaeck thanks, just crossed our replies

Thanks all for your inputs. The JAVA_HOME path was wrongly set till the Bin folder. Also created CLASSPATH and PATH variables under User variables under Environment variables.
Below are the values set which made the installation going ahead.

System Environment variables -
JAVA_HOME - *C:\Program Files\Java\jdk1.8.0_60*
PATH - C:\Program Files\Java\jre1.8.0_66\bin

User Environement variables -

PATH - C:\Program Files\Java\jdk1.8.0_60\bin
CLASSPATH - C:\Program Files\Java\jdk1.8.0_60\lib