Step 1: Delete the previously configured environment variables. If it is too troublesome to re-write them, you can copy them to Notepad and save them. Then just copy and paste them.
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. Delete them all, or you can delete only the Java files under Oracle and Sun.
Step 4: After deleting the folder, delete the registry. I believe many people know how to open the registry. If not, press win R, enter regedit, and hit Enter. After opening the registry , delete the JavaSoft folder.
Step 5: Restart the computer.
Recommended tutorial: Java tutorial
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!