1. 程式人生 > >Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'

命令列執行java -version 出現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 2 Runtime Environment.

解決方法:配置好了Path和ClassPath環境變數。
將 C:\Windows\System32和SysWOW64目錄中的java.exe檔案刪除。