Installation of the JDK on Microsoft Windows Platforms
The following sections provide tips for resolving issues, if any, while installing JDK.
If you see the error message: system error during decompression , then there might not be enough space on the disk that contains the TEMP directory.
Ensure that the item Prevent MS-DOS-based programs from detecting Windows is not selected.
If you see the error message: This program cannot be run in DOS mode , then do the following:
A 1722 error may occur if the installation directory is not part of the system locale’s code page. To prevent this, ensure that the user and system locales are identical, and that the installation path contains only characters that are part of the system locale’s code page. User and system locales can be set in theorcontrol panel.
Characters That Are Not Part of the System Code Page
Cleanup the Registry After a Failed JDK Uninstall
Sometimes, attempts to uninstall JDK through the Windows
Add/Remove program leave behind some Java entries in the
registry that are not fully removed. These left behind registry entries can cause
problems in installing a new version of Java. The following are the methods to
cleanup registry entries:
- Program Install and Uninstall troubleshooter (Recommended
Method) - Manual Registry Edit
Program Install and Uninstall troubleshooter (Recommended
Method)
Run the Program Install and Uninstall
troubleshooter to repair the corrupted registry keys that prevent
programs from being completely uninstalled, or blocks new installations and updates.
Manually edit the registry (Use this only if the Fix It utility
does not work)
Incorrectly editing your registry may severely damage your system. You should back up
any valued data from your computer before making changes to the registry.
Use the File->Export
functionality of the registry editor to
save the registry key before deleting. In case you deleted the wrong registry key,
you can restore the registry from your saved backup file, by using the
File->Import
functionality.
To delete the registry key:
-
Determine the correct Registry Key. See Finding the JDK Registry Key and UninstallString
Value. -
Highlight the key, Right click and select
Delete. -
Click Yes when prompted.
The JDK gets uninstalled.