How to remove Java environment variables?
To remove Java environment variables, you can follow the steps below:
- First, open the control panel. You can do this by searching for “control panel” in the start menu and clicking to open.
- Select “System and Security” in the control panel.
- Choose “System” on the “System and Security” page.
- Click on “Advanced system settings” on the left side of the “System” page.
- Click on the “Environment Variables” button in the “System Properties” dialog box under the “Advanced” tab.
- In the “Environment Variables” dialog box, you can see a list of system variables and user variables. Locate the variable named “JAVA_HOME” in the system variables list.
- Select the “JAVA_HOME” variable and then click on the “delete” button.
- Click the “Ok” button after confirming the deletion of the JAVA_HOME variable.
- Repeat steps 6 through 8, removing the part containing the Java path from the “Path” variable.
- Finally, click the “OK” button to close the dialog box.
This successfully deleted the Java environment variable.