How to remove Java environment variables?

To remove Java environment variables, you can follow the steps below:

  1. First, open the control panel. You can do this by searching for “control panel” in the start menu and clicking to open.
  2. Select “System and Security” in the control panel.
  3. Choose “System” on the “System and Security” page.
  4. Click on “Advanced system settings” on the left side of the “System” page.
  5. Click on the “Environment Variables” button in the “System Properties” dialog box under the “Advanced” tab.
  6. 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.
  7. Select the “JAVA_HOME” variable and then click on the “delete” button.
  8. Click the “Ok” button after confirming the deletion of the JAVA_HOME variable.
  9. Repeat steps 6 through 8, removing the part containing the Java path from the “Path” variable.
  10. Finally, click the “OK” button to close the dialog box.

This successfully deleted the Java environment variable.

bannerAds