简体   繁体   English

注册表引用了一个不存在的 Java 运行时环境安装或运行时已损坏错误

[英]The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted error

I have an Owasp Zap program that was working fine on java8, Windows 10. Recently, I upgraded to Java 11 as our automation project will not run on anything else.我有一个在 java8 上运行良好的 Owasp Zap 程序,Windows 10。最近,我升级到 Java 11,因为我们的自动化项目不会在其他任何东西上运行。 I have removed Java 8 folders from my C: drive and edited the environment variables and everything works fine except for Zap, which gives the error:我已经从我的 C 中删除了 Java 8 个文件夹:驱动器并编辑了环境变量,除了 Zap 之外一切正常,这会给出错误:

This application requires a Java Runtime Environment 1.8.0.此应用程序需要 Java 运行时环境 1.8.0。 The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.注册表引用了不存在的 Java 运行时环境安装或运行时已损坏。

I went to my registry but under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\ there was only references to the 11.0.5 jdk我去了我的注册表,但在Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\下只有对 11.0.5 jdk 的引用

I don't have anything in my environment variables pointing to the old jre as far as I can verify.据我所知,我的环境变量中没有任何指向旧 jre 的内容。

I don't have java 8 in Control Panel\All Control Panel Items\Programs and Features, although maybe when I deleted it, I deleted manually and should have ran a cleanup program.我在控制面板\所有控制面板项\程序和功能中没有 java 8,尽管可能当我删除它时,我手动删除了它,应该运行一个清理程序。

Following some advice here, I looked for a jvm.dll file in Runtime Lib in my registry, but I don't even see a Runtime Lib.根据此处的一些建议,我在注册表的运行时库中查找了 jvm.dll 文件,但我什至没有看到运行时库。 I also don't see any of the other java related folders other people mentioned finding in their registries that fixed this problem for them.我也没有看到其他人提到的其他 java 相关文件夹在他们的注册表中为他们解决了这个问题。 This is what my registry looks like:这是我的注册表的样子:

在此处输入图像描述

Also I noticed in Control Panel > Programs, there is a link for Java referring to the Java Control Panel, but it is a blank file icon, and when I click it, i get the message "Application not found"我还注意到在控制面板 > 程序中,有一个指向 Java 控制面板的 Java 的链接,但它是一个空白文件图标,当我单击它时,我收到消息“找不到应用程序”

Unfortunately, IT took my admin rights so I can't uninstall and reinstall Zap, but I'd love to solve this this weekend if it's possible.不幸的是,IT 拿走了我的管理员权限,所以我无法卸载并重新安装 Zap,但如果可能的话,我很想在这个周末解决这个问题。

I have uninstalled the old runtime and download the offline installation from https://www.java.com/en/download/manual.jsp .我已卸载旧运行时并从https://www.java.com/en/download/manual.jsp下载离线安装。 After installing the offline installation it's working fine for me.安装离线安装后,它对我来说工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM