Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't install or uninstall java sdk or runtime?

 
mike ryan
Ranch Hand
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 210
Eclipse IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 2
Java Windows Vista Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
Java Windows Vista Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello mike,
i could not find windows install cleanup on your link.
please help me out fix this problem
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vivek raunak wrote:i could not find windows install cleanup on your link.


Maybe you can Google for some decent uninstall software.
 
Deep Vam Dev
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!! )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic