title: Java version is not updated even after setting a new path
body: <p>I installed Java version "10.0.2" in 2018, but I'm trying to update it to "11.0.2" (I know that this is still old compared to the current latest version "13.0.2", but I need to set it "11.0.2" for a particular project that I'm working on). </p>
  
  <p>I downloaded the zip file and opened it up under the C drive, and tried to change the path. </p>
  
  <p><a href="https://i.stack.imgur.com/ADVQY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ADVQY.png" alt="Environment variables"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0GQE4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0GQE4.png" alt="New path added"></a></p>
  
  <p>A new path was added, so I opened a command prompt and checked the Java version with <code>Java -version</code> command, but it is still "10.0.2", even though it does say that the Java execution file is stored in the new path <code>C:\jdk-11.0.2\bin\java.exe</code> when I tried <code>where java</code> command like this. </p>
  
  <p><a href="https://i.stack.imgur.com/JYHLc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JYHLc.png" alt="Java version"></a></p>
  
  <p>Any idea on why this is happening? And how can I fix this? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried the advice I got on the comment section.</p>
  
  <p><a href="https://i.stack.imgur.com/ujvRj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ujvRj.png" alt="enter image description here"></a></p>
  
  <p>I also tried moving up the newly added path like this. </p>
  
  <p><a href="https://i.stack.imgur.com/VS8yE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VS8yE.png" alt="Moved up"></a></p>
  
  <p>I tried deleting other other six paths (of course I took a backup), but this didn't work either. </p>
  
  <p><a href="https://i.stack.imgur.com/zYWFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zYWFR.png" alt="enter image description here"></a></p>