File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Cannot uninstall and reinstall JDK 1.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cannot uninstall and reinstall JDK 1.6" Watch "Cannot uninstall and reinstall JDK 1.6" New topic

Cannot uninstall and reinstall JDK 1.6

Eason Wang

Joined: Nov 07, 2009
Posts: 1
I installed

on windows 2003 server

as the person who installed update16 did not know there is update 7 already exist.

Then, he removed the directory under java folder and deleted the registry

When I go to add or remove program in control panel, I cannot uninstall them

and it said "Fatal error during installation"

Then, I install the jdk-6u16-windows-i586-p.exe again and it keeps on prompting a dialog box:

"The software has already been installed on your computer. Would you like to reinstall it."

I click "Yes" and then this dialog box keeps on promoting on screen.

So, how should I remove jdk completely?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

"Java Slash", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

The first thing you should do is smack both the guy that "uninstalled" the JDK and your entire sysadmin team. The first guy because he apparently doesn't know how to install and uninstall programs, the sysadmin team because apparently they have given access with installation rights to one of your servers to someone who shouldn't be able to install programs on it.

After that you should remove the uninstall information from the registry; it's located at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. Go through the entries until you find one with the right display name, then delete the entire key. Then install the JDK again.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Cannot uninstall and reinstall JDK 1.6
It's not a secret anymore!