IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve

IDEA在配置完tomcat和jdk后,启动tomcat报错:

Application Server was not connected before run configuration stop, reason: 
Unable to ping server at localhost:1099

查了一下,主要有这几种情况:

1.jdk环境变量没有配置

2.idea里tomcat没有配置jdk

3.idea没有配置jdk

4..环境变量配置的jdk版本和idea里tomcat配置的jdk不一样

5.端口被占用

以上都不是我的情况,由于项目需求,我的电脑先装了jdk1.7,后装了jdk1.8,但是tomcat还是7.0的版本,后重装了了tomcat8.0,配入idea就可以正常运行了,可能是版本冲突的问题

下面是idea里正确的配置:

1.配置jdk

IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve_第1张图片 

 注意jdk地址IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve_第2张图片

2.配置tomcat 

IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve_第3张图片 

IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve_第4张图片 

3.环境变量

IDEA:Application Server was not connected before run configuration stop, reason:Unable to ping serve_第5张图片 

这样就可以正常运行了 

你可能感兴趣的:(bug修改)