title: Do I need to restart my system after setting JAVA in system environment's path variable?
body: <p>I did the following steps but java does not seem to be working for me, do I need to restart my system if yes then why?</p>
  
  <pre><code>1. Right click My Computer-&gt;Advence Option-&gt;Environment Varibles-&gt;System Variables 
      2. variable : Path-&gt;Edit
      3. Copy your jdk bin directory i.e.C:\Program Files\Java\jdk1.7.0_51\bin
      4. Paste it after putting a semi-colon(;) in value section 
  </code></pre>
  
  <p>i am getting below error while running java in cmd</p>
  
  <pre><code>C:\Users\User&gt;java -version
  Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
  Error: could not find java.dll
  Error: Could not find Java SE Runtime Environment.
  </code></pre>