How to completely uninstall Java:
Step 1: Delete the previously configured environment variables and rewrite them If it's too troublesome, you can copy it to notepad and save it, and then just copy and paste it.
Step 2: Uninstall JavaSE normally, either in the control panel or security software.
Step 3: Delete the Java-related folders in the C drive. When searching, also pay attention to Oracle, Sun and other folders. If only Oracle's Java products are installed on the computer, then Oracle, Sun, etc. will also be installed. Kill them all, or you can only kill the Java files under Oracle and Sun; for example: if it is installed on the C drive by default, check whether there are related folders under C:\Program Files or C:\Program Files (x86);
And these:
Step 4: After deleting the folder, delete the registry and open the registry I believe many people know this method. If not, press win R, enter regedit, and hit Enter:
After opening the registry, search for HKEY_CURRENT_USER\Software\JavaSoft, ( If there is one) delete the JavaSoft folder; and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft, delete the JavaSoft folder
Step 5: Restart the computer (whether necessary Restart the computer, I have not tested it, I just restarted it as a precaution).
The above is the detailed content of How to completely uninstall java. For more information, please follow other related articles on the PHP Chinese website!