开发者

Java EE 6 SDK uninstall 'Could not find the required version of the Java(TM) 2 Runtime Environment'

开发者 https://www.devze.com 2023-02-17 20:58 出处:网络
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.

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 runti开发者_JS百科me environment just to uninstall my Java EE 6 SDK?


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.


I got the same problem. By installing the program with following parameters it worked like charm.

java_ee_sdk-6u4-jdk7-windows-x64.exe -j "D:\Program Files\Java\jdk1.7.0_06"

where D:\Program Files\Java\jdk1.7.0_06 is the folder I have installed JDK 7 in my system.


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.


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:

uninstall.exe -j "%JAVA_HOME%"


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:

uninstall.exe -j "C:\Program Files (x86)\Java\jre"


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:

c:\temp> java_ee_sdk-7-jdk7-windows-x64.exe -j "C:\Program Files\Java\jre7"


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.


I have encountered the same problem while installing JAVA EE SDK 7. Setting PATH, CLASS_PATH, JAVA_HOME variables solved the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号