Reputation: 1101
I have set JAVA_HOME and PATH variable.
JAVA_HOME looks like this:
C:\Program Files\Java\jdk1.8.0_60
PATH looks like this:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
"C:\Program Files\nodejs\" "C:\Program Files (x86)\Brackets\command";C:\mongodb\bin;"C:\Program Files\cURL\bin" ;C:\Python34\python.exe;
"%JAVA_HOME%/bin" ;
Yet it can not find any of the java commands like javac or java,
User Path variable:
C:\Program Files\nodejs\node_modules\npm\; C:\Users\dev4\AppData\Roaming\npm; C:\mongodb\bin; " %JAVA_HOME%\bin\" ; "%ANT_HOME%\bin\" ;
System path variable:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\Program Files\nodejs\ ; C:\Program Files (x86)\Brackets\command;C:\mongodb\bin;C:\Program Files\cURL\bin ;C:\Python34\python.exe; %JAVA_HOME%\bin\;
Despite npm command is not working either.
These have been working before but since I was trying to set path for java , al of them have stopped working
Upvotes: 3
Views: 23573
Reputation: 21
Don't do what I did and sit there wondering for an hour why the path isn't changing in your windows.
Change the Variable...
THEN RESTART YOUR PC
An hour I will never get back lost to not doing the first thing you should try.
Upvotes: 2
Reputation: 9
In my system, User variable path is as below
C:\apache-ant-1.9.5\bin;E:\Android\platform-tools;E:\Android\tools;C:\Users\M\AppData\Roaming\npm
And my system path variable is
C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_45\bin;C:\Program Files\nodejs\
JAVA_HOME is
C:\Program Files\Java\jdk1.8.0_45
Hope this helps.
Upvotes: -1
Reputation: 13482
Please use \
backslash not /
forward slash That is the issue in your Path setup
EDIT :-
JAVA_HOME
Enter the variable value as the installation path for the Java Development Kit as C:\Program Files\Java\jdk1.8.0_60
Path
variable shown above imageUpvotes: 4