title: Properly installing java 8 along with java 7
body: <p>I've JDK 1.7 installed on my windows 7 machine and after installing JDK 1.8 u20 I'm having following error:</p>
  
  <pre><code>C:\&gt;java -version
  Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
  has value '1.8', but '1.7' is required.
  Error: could not find java.dll
  Error: Could not find Java SE Runtime Environment.
  </code></pre>
  
  <p>My <code>PATH</code> variable points to the older version (i.e. 1.7). </p>
  
  <p>What is wrong here and how I could use java 8 along with java 7?</p>