title: "Could not find Java SE Runtime Environment." after installing Java
body: <p>I was trying to set up Eclipse for trying my hand at Android app dev.
  I downloaded Eclipse and tried to run it... discovered I needed Java JDK. Googled and found JDK 7u40 (jdk-7u40-windows-x64.exe) and installed it. The install seemed to have gone dandy but when I tried to run Eclipse I got an error as well as if I try <code>java version</code> in cmd.</p>
  
  <pre><code>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>
  
  <p>I went to regedit, HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft and <code>Java Runtime Environment</code> doesn't exist in there. Seems like this is more of a symptom than the root cause of my problems.</p>
  
  <p>My PATH looks like</p>
  
  <pre><code>PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
  s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Window
  s;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Progra
  m Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Window
  s Live\Shared;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\AIR\bin;C:
  \Program Files (x86)\nodejs\;C:\SDK\Android\tools;C:\SDK\Android\platform-tools;
  C:\SDK\ANT\apache-ant-1.9.2\bin;C:\Program Files\Java\jdk1.7.0_40\bin\
  </code></pre>
  
  <p>%JAVA_HOME% = <code>C:\Program Files\Java\jdk1.7.0_40</code></p>
  
  <p>I'm running Windows 7 Pro 64-bit</p>
  
  <p>I did already read through <a href="https://stackoverflow.com/questions/9313353/error-when-checking-java-version-could-not-find-java-dll">Error when checking Java version: could not find java.dll</a> and linked materials</p>