title: Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)
body: <p>I've been attempting to install NativeScript with Angular with this <a href="http://docs.nativescript.org/angular/start/ns-setup-win" rel="nofollow noreferrer">tutorial</a> for the past two days, and I keep running into problems surrounding the Android SDK not installing correctly and freezing, and finally re-installing the latest JDK and JVE before attempting to install Android Studio. As I researched the problem I think I found the culprit: </p>
  
  <p>When I run <strong>Javac -version</strong> I keep getting an older version of JDK, it states: <strong>javac 1.6.0_45</strong> However I have the latest version of <strong>Jdk 1.8.0_102.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/E7Szw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E7Szw.jpg" alt="enter image description here"></a></p>
  
  <p>I researched the problem, but only found either complex solutions invilving the variable path, or MAC solutions. <strong>What can I do to update the JDK when I run Javac -version?</strong></p>
  
  <p><strong>User Variables: PATH</strong></p>
  
  <pre><code>cmd&gt; set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%NVM_HOME%;%NVM_SYMLINK%
  </code></pre>
  
  <p><strong>System Variables: PATH</strong></p>
  
  <pre><code>JAVA_HOME%/bin;C:\Python27\;C:\Python27\Scripts;C:\Ruby22-x64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files (x86)\Beyond Compare 3;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jdk1.8.0_102\bin;C:\Users\Godsnake\AppData\Local\Android\android-sdk\tools;C:\Users\Godsnake\AppData\Local\Android\android-sdk\platform-tools;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\nodejs
  </code></pre>
  
  <p><strong>Note:</strong>, I'm a complete noob at playing around with the Windows path, and I don't really know anything about the environment variable, but I see that the paths of certain applications that I have installed all appear in the system variables: Python, Node, Ruby, AngularJS2, AndroidSDK.. That being said if anyone can me some guidance on the uses, best practice, and differences between user variable and system variable that will be an added bonus. And please give me instructions like I'm a complete beginner when it comes to messing around with the path. Thanks!</p>