Java 错误打开注册表项 [英] Java Error opening registry key

查看:24
本文介绍了Java 错误打开注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在命令提示符下使用 Java 执行任何操作时出现此错误:

I get this error when I try to do anything with Java in command prompt:

Error opening registry key 'SoftwareJavaSoftJava Runtime Environment.3'
Error: could not find Java.dll
Error: could not find Java 2 Runtime Environment

几天前我确实删除了 Java 目录和注册表.我重新启动计算机,Java 仍然正常工作,然后我今天再次重新启动它,现在出现此错误.我试过卸载并重新安装,但这似乎不起作用.我安装了最新的 java JRE 并在环境变量中设置了路径.有人知道如何解决这个问题吗?

I did screw around with deleting Java directories and registry a few days ago. I restarted computer and java was still working fine, then i restarted it again today and now I get this error. I have tried uninstalling and reinstalling but that doesn't seem to work. I have the latest java JRE installed and the path set in the environment variables. Anyone have any clue how to fix this?

推荐答案

确保删除任何 java.exejavaw.exejavaws.exe 来自您的 WindowsSystem32 文件夹,如果您有 x64 系统(Win 7 64 位),也可以在 WindowsSysWOW64 下执行相同操作.

Make sure you remove any java.exe, javaw.exe and javaws.exe from your WindowsSystem32 folder and if you have an x64 system (Win 7 64 bits) also do the same under WindowsSysWOW64.

如果在这些位置找不到它们,请尝试从 C:ProgramDataOracleJavajavapath 中删除它们.

If you can't find them at these locations, try deleting them from C:ProgramDataOracleJavajavapath.

这篇关于Java 错误打开注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆