title: Setting User Path Variable for Java Path
body: <p>At my work I have user access with no admin privileges. My environment variable points to an old <strong>JDK</strong> at the current path: <code>C:\ProgramData\Oracle\Java\javapath</code></p>
  
  <p>From what I read on different posts such as <a href="https://superuser.com/questions/867728/user-vs-system-environment-variables-do-system-variables-override-user-variabl">this</a> which states that all <strong>user variables</strong> override the <strong>environment variable</strong> except the <strong>PATH</strong> variable in which it concatenates the environment variable and user variable together. I have followed many different tutorials and currently have my variables set up like this in my user PATH variable.</p>
  
  <pre><code>JAVA_HOME = C:\Program Files\Java\jdk1.7.0_79
  JRE_HOME = C:\Users\316830207\jre7
  PATH = C:\Users\316830207\AppData\Roaming\npm;C:\Users\316830207\AppData\Roaming\jdk1.7.0_79\bin
  TMP = %USERPROFILE%\AppData\Local\Temp
  </code></pre>
  
  <p>If you notice my PATH variable for the user has npm path as well as jdk. The npm path was added so I could bower from the command line. That works! However the path for the JDK is never used. No matter what when I type <code>java -v</code> I get </p>
  
  <blockquote>
    <p>The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe</p>
  </blockquote>
  
  <p>Since the path variable contacts the only thing I can think of is it skips my JDK path or overwrites. I have tried using command line using <code>setx</code> as I cannot use <code>setx /M</code> as I do not have admin access. I have searched for a few days now and the only conclusion is I am doing this wrong or security from my work is stopping me to overwrite JDKpath.</p>
  
  <p>So my question is am I setting the JDK path incorrectly? Is there a different way I can set it? Why will it only use my environment path and not my user JDK path?</p>