In environment variables I have set the below things:
JAVA_VERSION: C:\Program Files\Java\jdk1.7.0_67;
And added %JAVA_HOME%\bin
to the path.
When I run java -version
in command prompt it is showing 1.8.0_40
, and not 1.7.0_67
. Why is that?