Thoroughly reinstall JDK

Source: Internet
Author: User

If you are sure that the environment variables path and classpath required by Java are correctly configured, but one of the following problems occurs:

1. in DOS, javac can be used normally, but the prompt "cocould not create the Java Virtual Machine" is displayed when you enter Java.

2. in DOS, enter Java and the prompt is: Error: cocould not find java. dll...

3. When eclipse is started, the prompt is: failed to create the Java Virtual Machine

 

At this time, you need to reinstall JDK.

At this time, three programs need to be uninstalled: (The following is based on my version number)

1. java db 10.4.1.3

2. Java (TM) se Development Kit 6 Update 10

3. Java (TM) 6 Update 10

There is no suspense in uninstalling the first two, but problems often occur when uninstalling 3rd.

Unmount it in 360, no response, always exist;

Uninstall the program in "add or delete programs" and prompt "severe error during installation ".

 

Since 3rd are not uninstalled, it is generally unavailable to reinstall JDK.

So, how to uninstall JDK completely?

Only one tool is required:Windows Installer clean up

Http://download.pchome.net/system/cleanup/download-165578.html (this is one of them, readers can also find it on their own)

The role of this tool: (from Baidu)

The purpose of Windows Installer clean up is to clear the installation records of Windows Installer, that is, to delete the uninstall program, and will not delete any files of the installed program. It is generally used to handle the problem that the Office cannot be reinstalled. After you use Windows Installer clean up, you can only manually delete all files and directories of the program, or overwrite and delete unnecessary programs after installation.

This may be hard to understand, but when you encounter a program that cannot be uninstalled, you may be able to help with this software.

After the installation is complete or, you can open it in either of the following ways:

1. There is a "Windows Installer Clean Up" shortcut under the Start Menu.

2. c: \ Program Files \ Windows Installer clean up \ msicuu.exe (your installation path)

At this point, you will see the interface shown in Figure 1:

Figure 1 Windows Installer clean up running window

Unmount the three Java-related programs here, and delete all the files generated during installation. (It can be done without deletion, which wastes some space and will not affect the reinstallation)

Finally, you can reinstall JDK with confidence.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.