How to remove environment variable

I am use Windows 10 pro. I try to run other Tomcat instance, but I cannot control config (%CATALINA_HOME%).

This is systempropertiesadvanced (hasn't CATALINA_HOME variable):enter image description here

I try to echo by cmd (Administrator role)enter image description here

I try to echo by cmd: (no return result)enter image description here

Because I want run Tomcat correctly (other Tomcat instance), I must remove variable CATALINA_HOME, please help me!

6

1 Answer

To clear an environment variable using Setx.exe at a command prompt:

Click Start, point to Programs, and then click Command Prompt. If you want to clear a user environment variable, type the following line

setx <variable> "" 

where is the user environment variable. If you want to clear a system environment variable, type the following line

setx <variable> "" -m 

where is the system environment variable. Close the command prompt. When you use Setx.exe to clear an environment variable value, the environment variable name is not affected.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like