安装JDK遇到如下问题:

Failed reading value of registry key:
        Software\JavaSoft\Java Runtime Environment\1.8\JavaHome
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

 

原因:电脑上有多个JDK所导致的,注册表中是旧版本JDK的注册信息,所以只修改环境变量是没用的。

 

解决:控制面板中把以前的JDK全部卸载

JDK安装错误之:Failed reading value of registry key:...

然后再装新的JDK即可,或者只留最新的一个JDK。

相关文章:

  • 2021-06-29
  • 2022-12-23
  • 2021-12-31
  • 2021-08-07
  • 2022-01-02
  • 2022-12-23
  • 2021-08-10
猜你喜欢
  • 2021-07-05
  • 2021-05-29
  • 2021-10-17
  • 2022-03-06
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案