eclipse - "Could not find Java SE Runtime Environment." after installing Java -


i trying set eclipse trying hand @ android app dev. downloaded eclipse , tried run it... discovered needed java jdk. googled , found jdk 7u40 (jdk-7u40-windows-x64.exe) , installed it. install seemed have gone dandy when tried run eclipse got error if try java version in cmd.

error: opening registry key 'software\javasoft\java runtime environment' error: not find java.dll error: not find java se runtime environment. 

i went regedit, hkey_local_machine/software/javasoft , java runtime environment doesn't exist in there. seems more of symptom root cause of problems.

my path looks like

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\ 

%java_home% = c:\program files\java\jdk1.7.0_40

i'm running windows 7 pro 64-bit

i did read through error when checking java version: not find java.dll , linked materials

finally found forum post outlined registry supposed when not broken.

  1. added key hkey_local_machine\software\javasoft\java runtime environment
  2. added string value currentversion = 1.7
  3. added key hkey_local_machine\software\javasoft\java runtime environment\1.7
  4. added string value javahome = c:\program files\java\jre7

running cmd java -version , eclipse works


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -