无法运行程序“ C:\ Program Files(x86)\ Apache Software Foundation \ Tomcat 9.0 \ bin \ catalina.bat”

时间:2018-12-23 09:38:10

标签: tomcat intellij-idea

https://en.cppreference.com/w/cpp/container/unordered_set/operator_cmp运行时出现此错误。

  

运行“ Tomcat 9.0.14”时出错:无法运行程序“ C:\ Program Files(x86)\ Apache Software Foundation \ Tomcat 9.0 \ bin \ catalina.bat”(在目录“ C:\ Program Files(x86)中) \ Apache Software Foundation \ Tomcat 9.0 \ bin“):CreateProcess错误= 2,系统找不到指定的文件

如果我手动运行tomcat,它将正确运行。

环境变量如下:

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;

0 个答案:

没有答案