Error running 'Tomcat 9.0.14': Cannot run program "C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin\catalina.bat" (in directory "C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin"): CreateProcess error=2

Answered

I am getting this error while running tomcat from idea.

If I run tomcat manually it will run correctly.

environment variable be like:

CATALINA_HOME:C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0;

CLASSPATH:C:\Program Files (x86)\Java\jdk1.8.0_20\lib\tools.jar;C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\lib;

JAVA_HOME:C:\Program Files (x86)\Java\jdk1.8.0_20

PATH:%JAVA_HOME%\bin;%CATALINA_HOME%\bin;

 

 

 

Error running 'Tomcat 9.0.14': Cannot run program "C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin\catalina.bat" (in directory "C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin"): CreateProcess error=2, The system cannot find the file specified

1 comment
Comment actions Permalink

Do you use any 3rd plugins (like Smart Tomcat or others)? Do you have Antivirus/firewall? Could be a permission or environment issue, similar to https://youtrack.jetbrains.com/issue/IDEA-187181#focus=streamItem-27-2738233-0-0

Please provide screenshot of Tomcat settings in Settings | Build, Execution, Deployment | Application Servers page, the full textual output from Run(or Debug) tool window when you launch the application and idea.log file after IDE restart and after issue happens.

0

Please sign in to leave a comment.