美文网首页
[XAMPP]Tomcat Started/Stopped wi

[XAMPP]Tomcat Started/Stopped wi

作者: 天降小纸箱 | 来源:发表于2017-10-18 12:05 被阅读0次

新安装XAMPP,启动Apache,MySQL都没有问题,启动Tomcat时提示错误:


15:36:19  [Tomcat]  Tomcat Started/Stopped with errors, return code: 1

15:36:19  [Tomcat]   Make sure you have Java JDK or JRE installed and the required ports are free

15:36:19  [Tomcat]   Check the "/xampp/tomcat/logs" folder for more information


去XAMPP目录下找到Tomcat,运行catalina_start.bat

去网上找解决方案,都尝试了一遍都不行,最后没办法,只能尝试换一个jdk版本试试,重新安装配置环境,然后就成功解决了。

我最开始安装的是最新的jdk-9,安装版的,配置好环境,运行没有问题,可能是版本太新了,Tomcat不支持,换成以前的版本就OK了。

附:Windows下jdk环境配置:

官网下载JDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html

安装之后打开环境变量配置:

1. 新建系统变量 JAVA_HOME;变量值就是 jdk安装目录

2. 新建系统变量 CLASSPATH; 变量值: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar; 注意前面的 .

3. 在Path 变量后追加 %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

相关文章

网友评论

      本文标题:[XAMPP]Tomcat Started/Stopped wi

      本文链接:https://www.haomeiwen.com/subject/gxjruxtx.html