首页 > 解决方案 > 端口打开时tomcat服务器未启动

问题描述

我使用调试器模式运行我的 tomcat9 服务器并出现以下错误

'#export' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#export' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#JDK_JAVA_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
'#CATALINA_HOME' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'#CATALINA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'LOGGING_MANAGER' is not recognized as an internal or external command,
operable program or batch file.
'LOGGING_CONFIG' is not recognized as an internal or external command,
operable program or batch file.
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
Using CATALINA_BASE:   "C:\Program Files\Tomcat-9"
Using CATALINA_HOME:   "C:\Program Files\Tomcat-9"
Using CATALINA_TMPDIR: "C:\Program Files\Tomcat-9\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk-11.0.4"
Using CLASSPATH:       "C:\Program Files\Tomcat-        
9\bin\bootstrap.jar;C:\Program Files\Tomcat-9\lib\log4j-jul-        
2.6.2.jar;C:\Program Files\Tomcat-9\lib\log4j-core-2.6.2.jar;C:\Program     
Files\Tomcat-9\lib\log4j-api-2.6.2.jar;C:\Program Files\Tomcat- 
9\bin\tomcat-juli.jar"

我的java版本是11,我正确设置了路径,没关系,我还尝试使用“catalina.bat jpda start”命令使用不同的端口号启动tomcat9服务器,但出现上述错误,这是什么原因?

标签: javatomcattomcat9

解决方案


推荐阅读