aspose file tools*
The moose likes General Computing and the fly likes Can't install or uninstall java sdk or runtime? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Can Watch "Can New topic
Author

Can't install or uninstall java sdk or runtime?

mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Hi All!!!

Ok i have a big problem at the moment and don't know how to fix it although i have googled for a couple days so i wanted to ask in here.I deleted the java folder instead of
using the add/remove programs , i didn't realize while doing it that i needed to uninstall through the add/remove .SO i get an error 1723 that a DLL is missing and the install stops!!!
I have tried to clean the registry, with an application as well as searching through the REGEDIT manually to get rid of any java remnants and reinstall with no luck.

EDIT: Sorry forgot to givew some PC info:

OS--> Windows Vista
X-64 bit System
Intel Core i7 CPU



I also have the System restore off so i can't go back to a point where everything was working

If anyone has an idea what i can do to correct this problem i would greatly appreciate it

Thanks
Mike
mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Hi again!

I have solved this problem after trying 1000 different things !!! Finally i found the tool Windows install Cleanup which is no longer supported
and was a last shot in the dark attempt to fix this, and it worked perfectly for me.here is the link to it

I hope the link is allowed here, i hope it can help someone else that has this problem as i had searched the net over and over only finding allot of links to
registry cleanup programms (which of course cost money !!) and don't help anyway!!


Mike
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

If I recall corretly, when Java is installed in does three things:

1) Places a lot of files into the installation directory (c:\Program Files\Java\xxx by default, but I always recommend using a path without spaces)
2) Some registry entries at HKLM/Software/Java (not exactly sure of this location - I'm in Linux right now and don't have a Windows machine handy)
3) Places java.exe and javaw.exe in c:\Windows\system32
4) For a 32-bit JRE only, adds the applet plugin to IE

Sounds like you undid #1. I have undone #1, 2 and 3 and had no trouble installing other versions. I suspect that a tool such as autoruns from sysinternals could help in disabling #4.


JBoss In Action
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
use a tool called "javaRA" which completely removes old and redundant versions of java and ensures that your system might have the latest one.
look here
webpage
tell me what happened!
Jennifer chen
Greenhorn

Joined: Mar 03, 2011
Posts: 1
mike ryan wrote:Hi again!

I have solved this problem after trying 1000 different things !!! Finally i found the tool Windows install Cleanup which is no longer supported
and was a last shot in the dark attempt to fix this, and it worked perfectly for me.here is the link to it

I hope the link is allowed here, i hope it can help someone else that has this problem as i had searched the net over and over only finding allot of links to
registry cleanup programms (which of course cost money !!) and don't help anyway!!


Mike


I tried your method, and it worked!! I just want to say thank you so much for this!! Up until your solution, I was going mad trying to fix the error. Thanks!!
mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Hey Jennifer,

Glad to hear that it helped you out!!! I know what a real pain it is to have that problem and i hope this thread helps others with the same problem!
I also hope that someone at Oracle/ Microsoft can pin down the problem and just get rid of it.If not i will personally write the program to correct it;) once i am good enough hehe.

Mike
Manuel Fernandez
Greenhorn

Joined: Mar 30, 2011
Posts: 1

mike ryan wrote:Hi again!

I have solved this problem after trying 1000 different things !!! Finally i found the tool Windows install Cleanup which is no longer supported
and was a last shot in the dark attempt to fix this, and it worked perfectly for me.here is the link to it

I hope the link is allowed here, i hope it can help someone else that has this problem as i had searched the net over and over only finding allot of links to
registry cleanup programms (which of course cost money !!) and don't help anyway!!


Mike



Thanks a lot.
austin henrik-Naymeer
Greenhorn

Joined: Jul 24, 2011
Posts: 2

I tried the program listed above by mike but after that I still can't reinstall it and it keeps coming up with the error. I have a windows vista x86. i also already deleted the files from C:\Program Files (x86)\java too. What am I doing wrong? please help

austin

If Your canoe runs into a pit of waffles and you only have on pelican who do you elect for plumber? A=no one your hair is a bird
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

Austin. welcome to Java Ranch!

The installer cleanup tool often misses things, though it will help remove the app from the "Pograms and Features" control panel.

Also try deleting the following:
c:\windows\system32\java*.exe
c:\Program Files\Java (if you installed the 64-bit JDK or JRE)
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft (the whole registry key and its subcontents - you might want to export it before deleting it just in case)

Also, please provide the details about exactly what it is that you are doing: the exact version of Java, if it is 64 or 32-bit, the error you are seeing.
See: ItDoesntWorkIsUseless

austin henrik-Naymeer
Greenhorn

Joined: Jul 24, 2011
Posts: 2

first off thanks

and the cause is that I had just downloaded the newest version but the internet freaked out and cut the download, so I deleted C:\Program Files (x86)\Java\JDK<version> assuming that
doing so would clear it up so i could try installing it again. but I tried and it complained "error 1723 the program could not be uninstalled becuase a DLL package was missing". so I googled it for about an hour to find this page where I tried the registry cleaner posted by mike. also there is no java.exe in the system32 anymore and the registry file was deleted. also the JDK I had was for my Windows Vista OS Dell Inspiron, which also coincidentally has a Intel Core i7 CPU. Yet after all this it still remains uninstalled. also my java is 32bit
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

program could not be uninstalled becuase a DLL package was missing"

By deleting the C:\Program Files (x86)\Java\JDK directory you deleted the DLL that is needed to uninstall the prior failed install.

Microsoft used to have a utility that would let you clean up a failed install, but they pulled it off of the web site (the utility was mainly for failed Office installs but worked for any app - apparently they fixed the Office install bug and thus pulled the utility). You could try going into the registry and looking at:
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
and remove any references to Java that appear there.

It sounds like you are doing the internet install - that is where a small file is downloaded first and then it grabs the rest of the files off of the internet to do the install. If so, don't use that. Instead, download the large package that is about 60-70MB in size. Download it from this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
vivek raunak
Greenhorn

Joined: Jun 20, 2013
Posts: 1
Hello mike,
i could not find windows install cleanup on your link.
please help me out fix this problem
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

vivek raunak wrote:i could not find windows install cleanup on your link.


Maybe you can Google for some decent uninstall software.


SCJP, SCWCD.
|Asking Good Questions|
Deep Vam Dev
Greenhorn

Joined: Sep 30, 2013
Posts: 1
mike ryan wrote:Hi again!

I have solved this problem after trying 1000 different things !!! Finally i found the tool Windows install Cleanup which is no longer supported
and was a last shot in the dark attempt to fix this, and it worked perfectly for me.here is the link to it

I hope the link is allowed here, i hope it can help someone else that has this problem as i had searched the net over and over only finding allot of links to
registry cleanup programms (which of course cost money !!) and don't help anyway!!


Mike


Thank you Mike! Thanks a Lot!
Luckily enough, I checked this forum first that saved me other 999 things you tried!.
You know, for years people are gonna thank you for this!
HUGE trouble turned out to be so little!
Thanks again!! )
 
 
subject: Can't install or uninstall java sdk or runtime?