JDK卸载不完全。
重装还是一样会出错。
下面是SUN公司给出的解决办法:
How do I uninstall Java on my Windows computer ?
This article applies to:
- Platform(s): Windows 7, Vista, Windows XP, Windows 2003, Windows 2000, Windows 98, Windows ME
- Java version(s): 1.4.2_xx, 1.5.0, 6.0
To uninstall Java from your system, use the Add/Remove Programs utility in the Microsoft Windows Control Panel.
- Click Start
- Select Settings
- Select Control Panel
- Double click the Add/Remove Programs control panel icon
- The Add/Remove control panel displays a list of software on your system, including any Java software products that are on your computer. Select any that you want to uninstall by clicking on it, and then click the Remove button.
Note:
If the normal uninstallation process (as mentioned above) fails, then please try Microsoft Windows Installer Cleanup Utility. This tool will ensure that all irrelevant Java Runtime Environment Microsoft Installer (msi) registries are removed. Detailed information and download is available at: Description of the Windows Installer CleanUp Utility
Removal instructions:
- Download the Microsoft Installer Clean Up utility file and save it on your desktop
- Double click on executable file. The installation process will start. Follow the instructions accordingly
- Once installation process is over, go to Start -> All Programs -> Run Windows Install Clean Up utility
- This will launch the Windows Installer Clean Up utility dialog box
- Under the Installed products list, select the desired Java version that you want to remove
- Click Remove and Exit