1

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
  • If you've cleared to variable yourself then you might want to try rebooting (not shutdown) your computer and see if it gets cleared then.
    – Mokubai
    Mar 17, 2016 at 7:46
  • Thank you, yesterday, I did the same your advice, It works. But today, nothing change.
    – Vy Do
    Mar 17, 2016 at 7:51
  • Tomcat may be running as a service (on startup), using a batch file which sets %CATALINA_HOME%
    – DavidPostill
    Mar 17, 2016 at 8:25
  • Thank you. inside file \bin\startup.bat, I add this line: set "CATALINA_HOME=C:\data\dcv\liferay\for deploy\liferay-portal-6.2-ce-ga6\tomcat-7.0.62", it works.
    – Vy Do
    Mar 17, 2016 at 8:41
  • 1
    @dovy Please read Can I answer my own question?. You might want to convert your comment into an answer ;)
    – DavidPostill
    Mar 17, 2016 at 12:15

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .