I have gotten this Java error when attempting to upgraded Java. I’ve also heard of getting this same error when trying to uninstall Java
Here is the fix I found somewhere on the web, use at your own risk.
1. Stop all java services via Task Manager
2. Delete the JRE folder in Program Files
3. Create a BAT file with the following contents and run as Administrator:
reg query hklm\\software\\classes\\installer\\products /f “java(tm) 6? /s | find “HKEY_LOCAL_MACHINE”; deljava.txt for /f “tokens=* delims= ” %%a in (deljava.txt) do reg delete %%a /f del deljava.txt reg delete “HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Runtime Environment” /f reg delete “HKEY_LOCAL_MACHINE\\SOFTWARE\\wow6432node\\JavaSoft\\Java Runtime Environment” /f