Java EE 6 SDK 卸载“无法找到所需版本的 Java(TM) 2 运行时环境”
我想在 Windows 7 计算机上卸载 Java EE 6 SDK,但是当我运行附带的卸载程序时,出现以下错误。
Error: Could not find the required version of the Java(TM) 2 Runtime Environment in'(null)'.
接下来...
This application needs version 1.6 or higher of the Java(TM) 2 Runtime Environment
如何解决这个问题?我是否必须安装 java 2 运行时环境才能卸载 Java EE 6 SDK?
I want to uninstall my Java EE 6 SDK on my windows 7 machine, but when I run the included uninstall program, I get the following error.
Error: Could not find the required version of the Java(TM) 2 Runtime Environment in'(null)'.
Followed by...
This application needs version 1.6 or higher of the Java(TM) 2 Runtime Environment
How to fix this? Do i have to install the java 2 runtime environment just to uninstall my Java EE 6 SDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
确保您安装了 32 位和 64 位版本的 JRE。
如果没有 32 位 JRE 安装,Java EE x64 安装程序将无法运行。
Make sure you have both the 32 and 64 bits version of JRE installed.
The Java EE x64 installer won't work without the 32 bits JRE installation.
我遇到了同样的问题。通过使用以下参数安装程序,它的工作方式就像魅力一样。
其中 D:\Program Files\Java\jdk1.7.0_06 是我在系统中安装 JDK 7 的文件夹。
I got the same problem. By installing the program with following parameters it worked like charm.
where D:\Program Files\Java\jdk1.7.0_06 is the folder I have installed JDK 7 in my system.
这是正确的。您需要从 http://www.java.com 安装 Java SE 才能运行 Java EE(卸载)安装程序。它是用 Java 编写的,因此它至少需要一个 JVM。
That's right. You need to install Java SE from http://www.java.com in order to be able to run the Java EE (un)installer. It's written in Java, so it needs at least a JVM.
因此,假设您要从 glassfish 目录中的卸载程序进行卸载。您可以在命令行中使用 JAVA_HOME 环境变量指定卸载程序:
So assuming you're uninstalling from the uninstaller in the glassfish directory. You can specify the uninstaller with your JAVA_HOME environment variable in the command line:
我遇到了所有这些问题以及更多问题,但我发现一些非常简单的事情。您所要做的就是删除 Eclipse,转到 Eclipse 并下载 32 位 Galileo;效果很好。您不需要复制来更改路径或其他任何内容。
I have got all these problems and more, and I found something really simple. All that you have to do is erase Eclipse, go to Eclipse and download the 32-bit Galileo; that works pretty good. You don't need to copy to change a path or anything else.
这样做:
Do this:
我安装了适用于 Windows 7(x64 版本)的 JRE 7 u 45,然后可以使用下面的命令行安装 64 位版本的 Java EE 7(x64 版本)。只需更新 j 参数以指向系统上的 java 运行时目录:
I installed the JRE 7 u 45 for Windows 7 (x64 version), then was able to install the 64-bit version of Java EE 7 (x64 version) by using the command line below. Just update the j parameter to point to the java runtime directory on your system:
我已经卸载了 32 位 Java (C:\Program Files (x86)\Java...) 和 64 位 (C:\Program Files\Java...),但由于某种原因它留下了一个 java 文件夹(C:\Program Files\Java...)。
一旦我手动删除该文件夹,错误就消失了。
I had uninstalled both 32-bit Java (C:\Program Files (x86)\Java...) and 64-bit(C:\Program Files\Java...), but for some reason it left behind a java folder (C:\Program Files\Java...).
ONce I manually deleted that folder, the error went away.
我在安装 JAVA EE SDK 7 时遇到了同样的问题。设置
PATH
、CLASS_PATH
、JAVA_HOME
变量解决了该问题。I have encountered the same problem while installing JAVA EE SDK 7. Setting
PATH
,CLASS_PATH
,JAVA_HOME
variables solved the issue.