• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Completely uninstall Java from Windows 7 Pro (32-bit)

I am trying to completely uninstall all old versions of the Java run-time from a computer. The Java uninstall thinks it worked with only the current version (8 Update 151), but there are other remnants left. And the remnants differ for different user accounts on the computer. How can I get all JREs off the computer so that I can get a single clean JRE with only the current version.

I have tried the uninstall option in Programs and Features (reports success, but old stuff is still there). When I run the Java uninstall tool it says I only have the current version. If I uninstall anyway and then reinstall it says I have the current version. If I look at the Java Runtime Environment Settings it shows 1.8.0_151, 1.8.0_71, and 1.8.0_60 for one user; 1.8.0_151, 1.8.0_73, and 1.8.0_60 for another user. In "Program Files\Java" I see folders jre1.8.0_151, jre1.8.0_71, jrte1.8.0_60, jre1.8.0_31, and jre6. There is a line-item option to remove an environment, but I cannot find a description of what that really does: Does it really remove the version, does it disable it for that user, does it just remove the grid entry, ...?

Java help pages refer me to a MS Fixit (at https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed). That page says it cleans up registry keys on 64-bit operating systems. This is the 32-bit variant of Windows 7. I am worried about causing problems.

Does anyone know of a utlity or procedure to get ALL of Java off a computer short of a Windows re-install?
0
JoeM21
Asked:
JoeM21
  • 6
  • 5
  • 3
  • +1
1 Solution
 
JohnBusiness Consultant (Owner)Commented:
If you look in Programs and Features and really only have the one newest version of Java installed and none others, then delete the old Java folders in Program Files\Java.   I have done that several times. Newest Java now seems to do that during the install.

This is the only folder I have:   C:\Program Files (x86)\Java\jre1.8.0_151
0
 
RaminTechnical AdvisorCommented:
The below link which you also mentioned in your post may fix your problem.
https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

I am worried about causing problems.
it works with 32 and 64 bit version of Windows.

If you want to be sure just Create a restore point before running it.
0
 
JoeM21Author Commented:
Thanks for the response. I am concerned that the approach might hide the mess more than actually clean things up.

There are numerous Java references in the registry (see attached) including old versions. I do not know which keys actually do something. The versions displayed in the Runtime Environment Settings supposedly come from the registry. Do you only show the one line in your settings display?
Jave-Registry-extracts.rtf
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
JohnBusiness Consultant (Owner)Commented:
Try removing the Folders and restarting. This does not change the registry
0
 
RaminTechnical AdvisorCommented:
I am concerned that the approach might hide the mess more than actually clean things up.
You can create a System Image backup ( only C: drive)  on one of the partitions on that PC,  if anything went wrong then you can use that Image to restore Windows easily.

Then run that tool,  it will do whatever is needed to do.
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
JavaRa was designed for this but as per its author Oracle uninstallation process has improved to the point where JavaRa became redundant

JavaRa was created because the Java updater did not remove old and obsolete versions of the JRE, leaving security vulnerabilities in place. The latest versions of Java now completely uninstall outdated and insecure versions, with roughly the same effectiveness as JavaRa.

https://singularlabs.com/announcements/retiring-javara/
0
 
JoeM21Author Commented:
Ramin, I ran the uninstaller. It gave me an option to uninstall Java 8 update 151, not all of Java. That is what it did. I still have the same amount of old Java references in the registry and in the Program File folders.
0
 
JoeM21Author Commented:
John, I think of the extra Java program file folders as a symptom, not the underlying problem. I am concerned because there are keys in the registry that reference them. Removing the folders without doing the related registry cleanup may leave my worse off.

The fact that removing the folders and restarting does not change the registry sounds like a negative and not a positive.
0
 
JoeM21Author Commented:
Shaun, I found discussion of JavaRa and its demise early on. I wish that the Oracle uninstaller was as good as they assumed.
0
 
RaminTechnical AdvisorCommented:
It gave me an option to uninstall Java 8 update 151, not all of Java.

Did you try to restart the PC and run that tool after restarting ?
0
 
JohnBusiness Consultant (Owner)Commented:
I think of the extra Java program file folders as a symptom, not the underlying problem. .....  The fact that removing the folders and restarting does not change the registry

Yes, I certainly understand that. However did removing the folders stop Java from thinking there were prior version?  If so you can simply move on.

If not, you have deeper problems than Java and Java is not really your issue.  In this case, try the following:

1. Open cmd.exe with Run as Administrator. Run SFC /SCANNOW, allow to complete, restart and test.

2. If that does not fix the issue, run Windows 7 Repair Install. You need your Windows 7 DVD or a working recovery partition. Here is a tutorial to help you.

http://www.sevenforums.com/tutorials/3413-repair-install.html

Then finally, neither of the above correct damage Windows User Account Profiles.

Make a new, test, Windows User Profile, log into the new profile and test Java.

You wrote  "procedure to get ALL of Java off a computer short of a Windows re-install? "   

The above list is a lengthy list and you may decide after all to start fresh. If you do, consider Windows 10.
0
 
JoeM21Author Commented:
Thanks for you help. Sorry for the delayed response. I have tried some things and have been slowed down by the holidays.

@Ramin,
 I ran the uninstall and rebooted the computer. There were still a lot of "Java" folders and registry entries.  I installed the version 8 update 151 run-time and I was back to where I was at the beginning. I don't think that this approach is providing any benefit.

@John,

I have limited access to the computer during working hours. This weekend I will try uninstalling Java, removing the Java subfolders in the "Program files/Java" folder, reinstalling Java, and seeing if there is any improvement. I will be happily surprised if this works. As I initially reported, Java currently reports version 1.8.0_73 for one use and there is not such folder.

I tried SFC again. It reported no problems. I will try a Windows repair and a new profile when I am on site.

Windows 10 is not a current option.

Thanks again
0
 
JohnBusiness Consultant (Owner)Commented:
I suggested reinstalling Windows 7 in https:#a42414238 .
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
John;s SFC and a windows repair install do not help
OP is referring to JAVA reinstall, not Windows 7
0
 
JoeM21Author Commented:
I am not sure what happened the previous time I tried to close this. I meant To select John's comment
ID: 42414238 on 2017-12-24 as the best solution.

Uninstalling Java and re-installing Java was essentially a no-op. The uninstall leaves a lot of Java stuff behind. "Uninstalling" Java does not completely uninstall Java. I don't know enough to tell if the remaining detritus has any impact. Reinstalling Java gets me right back to where I was. I repeated this approach after it was suggested to cover the bases and because someone took the time to respond.

John's approach was a series of procedures - each more drastic than the previous and each to be tried only if the previous attempts did not result in success. The last alternative is a Windows re-install It is not a solution that I like. That doesn't mean that it is not a solution or the best solution under the circumstances.

If some expert out there has special insight in how to completely clean Java out with less drastic steps he/she has not contributed here. This question has been open long enough to make that contribution very unlikely. So I closed it.

Thanks all for your participation.
0
 
JohnBusiness Consultant (Owner)Commented:
I appreciate that you followed up. Many thanks.
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
Try this...

Download MSIZAP
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370523(v=vs.85).aspx

  1. Go to Start and then Run
  2. Type in regedit in the edit field
  3. Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
  4. Find and copy GUID for Java

Run this command
MSIZAP T {THEGUID}

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 6
  • 5
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now