我试图在一门课程中使用xampp,但我无法使tomcat正确工作,我得到的错误是:
tomcat使用错误启动/停止,返回代码:1确保安装了Java或JRE,所需端口是免费的,请查看"/xampp/tomcat/logs“文件夹以获得更多信息
在这个问题上,我见过很多其他人,但他们得到的任何建议都帮不了我。
我已经解决了这样的环境变量:
我已经将端口设置为7070 (不确定这是否有效)
当我从cmd运行CATALINA_START时,我得到了以下内容:
C:\xampp\tomcat>catalina_start
[XAMPP]: Searching JDK HOME with reg query ...
'reg' is not recognized as an internal or external command, operable program or batch file.
'reg' is not recognized as an internal or external command, operable program or batch file.
[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\jdk-9
[XAMPP]: Set CATALINA_HOME : C:\xampp\tomcat
Using CATALINA_BASE: "C:\xampp\tomcat"
Using CATALINA_HOME: "C:\xampp\tomcat"
Using CATALINA_TMPDIR: "C:\xampp\tomcat\temp"
Using JRE_HOME: "C:\Program Files\Java\jre-9"
Using CLASSPATH: "C:\xampp\tomcat\bin\bootstrap.jar;C:\xampp\tomcat\bin\tomcat-juli.jar"
-Djava.endorsed.dirs=C:\xampp\tomcat\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.Apache和MySQL工作得很好,但是tomcat让人头疼,有人知道会有什么问题吗?
发布于 2017-11-15 13:24:31
我卸载了1.9,安装了1.8,Tomcat立即启动并工作。另一种选择是在xampp之外安装Tomcat 9并使用java1.9运行它,但就我而言,用java1.8运行tomcat 7就足够了。
https://stackoverflow.com/questions/47060700
复制相似问题