I am following a tutorial to setup Apache Storm. (That's just for context -- it doesn't really matter for my error.)
So it tells me to set some environment variables, specifically %JAVA_HOME% and %STORM_HOME% as C:\Java\jdk1.8.0_60\ and C:\storm-0.9.1-incubating-SNAPSHOT-12182013\, respectively. I've never done this sort of thing before, so I looked up how to do this and I ran:
C:\>setx %JAVA_HOME% C:\JAVA\jdk1.8.0_60\
and it gave: SUCCESS: Specified value was saved.
Then I did:
C:\>setx %STORM_HOME% C:\storm-0.9.1-incubating-SNAPSHOT-12182013\
and it gave the same thing: SUCCESS: Specified value was saved.
Then the tutorial says to add %STORM_HOME%\bin;%JAVA_HOME%\bin;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\; to PATH. I entered C:\>PATH to see what it currently is and it gave:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
So I thought I could add to it by doing
C:\>setx PATH C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%STORM_HOME%\bin;%JAVA_HOME%\bin;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;
In other words, I just tried calling setx on PATH and I set it to what it currently is and with the stuff the tutorial says appended to the end. It gave SUCCESS: Specified value was saved. However, when I enter:
C:\>PATH
it returns what it was originally (the stuff I tried appending is not there). I tried another method. I ran
C:\>PATH=%PATH%;%STORM_HOME%\bin;%JAVA_HOME%\bin;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;
Then when I entered C:\>PATH it returned the full PATH with the stuff I wanted to append appended.
The problem I now face is using these variables. When I enter
C:\>cd %STORM_HOME%
it says The system cannot find the path specified. I tried restarting my computer but PATH got reset and I still got the same error.