无法卸载 Java JRE 1.7 32 位
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11918936/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot uninstall Java JRE 1.7 32bits
提问by LautaroAngelico
For some reason my firefox browser stopped detecting java and now I can't run anything with java on it because it says that it's not installed, so I went to add/remove programs and tried to uninstall java but it just won't get removed.
出于某种原因,我的 firefox 浏览器停止检测 java,现在我无法在上面运行任何带有 java 的东西,因为它说它没有安装,所以我去添加/删除程序并尝试卸载 java,但它不会被删除.
http://rcupload.com/images/IDSnu.png
http://rcupload.com/images/IDSnu.png
So when I try to uninstall it (Java(TM) 7 Update 5) a little window appears with a progress bar, after it completes it disappears but Java is still there..
因此,当我尝试卸载它(Java(TM) 7 Update 5)时,会出现一个带有进度条的小窗口,完成后它消失了,但 Java 仍然存在..
this is the window that appears: http://rcupload.com/images/HLUwZ.png
这是出现的窗口:http: //rcupload.com/images/HLUwZ.png
Here's what I tried to do:
这是我尝试做的:
1) Use CCleaner to uninstall it: - I choose the program, press uninstall and it disappears, but when I refresh the list it will still be there. I also tried using the "remove entry" button in CCleaner and i just get a message saying "cannot delete msi installer'.
1) 使用 CCleaner 卸载它: - 我选择程序,按卸载它就会消失,但是当我刷新列表时它仍然存在。我还尝试使用 CCleaner 中的“删除条目”按钮,但收到一条消息,提示“无法删除 msi 安装程序”。
2) I tried using JavaRA: - I ran it as administrator, clicked "remove older versions", and I got the message that Java JDK 1.7 was uninstalled and all the files, but now I see that there is no folder for it at "C:\program files (x86)\Java\" (there was one inside before, called something like jre-7) and the icon in the installed programs appears like a white box instead of looking the like the java logo.
2)我尝试使用 JavaRA: - 我以管理员身份运行它,单击“删除旧版本”,然后我收到消息,提示 Java JDK 1.7 和所有文件都已卸载,但现在我看到在“ C:\program files (x86)\Java\"(之前有一个,叫做 jre-7 之类的),安装程序中的图标看起来像一个白框,而不是看起来像 java 标志。
3) I tried downloading java and installing it: - I run it, it downloads and it gets to a screen where it asks me if I want to install a toolbar, I click next and I get this message: http://rcupload.com/images/xiCIu.png
3)我尝试下载Java并安装它: - 我运行它,它下载并进入一个屏幕,询问我是否要安装工具栏,我单击下一步并收到此消息: http://rcupload。 com/images/xiCIu.png
- I also tried changing the destination folder. same result.
- 我也尝试更改目标文件夹。同样的结果。
-- Resumed: I need to get rid of Java(TM) 7 Update 5 but the uninstaller seems not to work and files are missing.
-- 恢复:我需要摆脱 Java(TM) 7 Update 5,但卸载程序似乎不起作用并且文件丢失。
Any help will be appreciated!
任何帮助将不胜感激!
Thanks.
谢谢。
回答by Karim Sonbol
I was having the same exact problem, and solved it using Microsoft Fix it tool, here: http://support.microsoft.com/mats/program_install_and_uninstall
我遇到了同样的问题,并使用 Microsoft Fix it 工具解决了它,这里:http: //support.microsoft.com/mats/program_install_and_uninstall
Finally, a Microsoft troubleshooter that actually works !
最后,一个真正有效的微软疑难解答!
回答by Madushan
I haven't experienced this before my self. Here's my guess. One may say this is a 'harsh' way to remove and cause system in-stability. But I don't see any other way with the given details.
在我自己之前,我还没有经历过这种情况。这是我的猜测。有人可能会说这是一种“苛刻”的移除和导致系统不稳定的方式。但我没有看到给定细节的任何其他方式。
Please don't continue if you don't understand every step. This is almost what the un-installer does behind the scenes. You will have to do them manually.
如果您不了解每一步,请不要继续。这几乎就是卸载程序在幕后所做的。您将不得不手动执行这些操作。
- First Un-install Firefox.
- It doesn't detect the Java version installed for some reason where the Java installer does. you'll have to re-install it later when everything is fine.
- Delete (i mean, backup) your JRE folder in 'Program Files'
- Open regedit, and find the key for Java Runtime under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
and delete (export it first, just in case) the key. (You'll have to go through each key and see theDisplayName
for them.)- This will remove the entry in Add/Remove programs and Windows will think there's no Java.
- Remove Java path from your System's Environment variables.
- This will cause some apps that check for Java to decide that there's no Java installed.
- Run the un installer again (if it's still visible in Add/Remove Programs).
- If Windows still has the reference to the uninstaller, this will cause it to update it self and remove any references because there's no registry entry, and no program files.
- Reboot the machine.
- This will flush any waiting changes, unregister stuff .etc.
- 首先卸载Firefox。
- 它不会检测到 Java 安装程序出于某种原因安装的 Java 版本。当一切正常时,您必须稍后重新安装它。
- 删除(我的意思是备份)“程序文件”中的 JRE 文件夹
- 打开 regedit,在下面找到 Java Runtime 的密钥
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
并删除(先导出,以防万一)。(您必须检查每个键并查看DisplayName
它们。)- 这将删除添加/删除程序中的条目,Windows 会认为没有 Java。
- 从系统的环境变量中删除 Java 路径。
- 这将导致一些检查 Java 的应用程序决定没有安装 Java。
- 再次运行卸载程序(如果它在添加/删除程序中仍然可见)。
- 如果 Windows 仍然有对卸载程序的引用,这将导致它自行更新并删除任何引用,因为没有注册表项,也没有程序文件。
- 重新启动机器。
- 这将刷新所有等待的更改,取消注册内容等。
Try installing Java again. (Installer should not detect that there's Java installed, because there's no Environment variables set, and no registry entries.)
再次尝试安装 Java。(安装程序不应检测到安装了 Java,因为没有设置环境变量,也没有注册表项。)
Please try this at your own risk. This may cause issues in your system.
请自行承担风险尝试此操作。这可能会导致您的系统出现问题。
You may get a better answer if posted on superusersite.
如果发布在超级用户网站上,您可能会得到更好的答案。
Let us know the results.
让我们知道结果。