Java DK is not getting installed

  • Context: Java 
  • Thread starter Thread starter hermy
  • Start date Start date
  • Tags Tags
    Java
Click For Summary
SUMMARY

The discussion centers on issues encountered while installing the Java Development Kit (JDK) on a Windows system. The user mistakenly installed the JDK in the wrong directory (c:\program files) and faced difficulties uninstalling it, leading to a write-protection error when attempting to delete the "java" folder. Subsequent attempts to reinstall the JDK resulted in error 1721, indicating a problem with the Windows Installer package. Suggested solutions include reinstalling over the existing installation and following Microsoft support guidelines for Windows XP.

PREREQUISITES
  • Understanding of Java Development Kit (JDK) installation processes
  • Familiarity with Windows operating system file management
  • Knowledge of Windows Installer error codes and troubleshooting
  • Basic skills in using System Restore on Windows
NEXT STEPS
  • Research how to resolve Windows Installer error 1721
  • Learn about managing write-protected files in Windows
  • Explore the Java Development Kit installation best practices
  • Investigate the use of Microsoft support resources for installation issues
USEFUL FOR

Java developers, system administrators, and anyone troubleshooting JDK installation issues on Windows systems.

hermy
Messages
41
Reaction score
0
Hello!

I installed java developers' kit today, but in c:\program files by mistake. I wanted to change it to c:\, so initially I just cut-pasted it. It didn't work, so I uninstalled it (add or remove programs in control panel). However, when I tried to delete the "java" folder in c:\, it said that some file was write-protected and couldn't be deleted.

I tried to install java DK again, this time mentioning the correct destination, but it wouldn't install. I get an error no. 1721 saying that "there is a problem with this package of windows installer. A program required for this install to complete could not be run" . I am surprised because, earlier, when I had installed java (albeit, at the wrong destination) there was no such error.

I also tried System Restore, but the folder "java" is still stuck there, and I keep getting error 1721.

Any help would be appreciated. Thanks in advance.
 
Technology news on Phys.org
Try reinstalling over the old installation (in the same folder exactly). If that works, then formally uninstall that (via Control Panel). Then reboot, and try again.
 
Also, see http://support.microsoft.com/kb/891985 if you are on Win XP
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 12 ·
Replies
12
Views
11K
Replies
3
Views
2K