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

时间:2021-03-27 20:12:53

最近学习javaweb遇到了这个问题,报错来自intellij idea的Tomcat启动的时候

同时out里面报错

The JRE_HOME environment variable is not defined correctly This environment

 

引起该问题的原因是我装数据库将32位的jdk换成了64位的jdk(版本不一致)

换完之后打开intellij idea发现不能使用项目更改了设置里面的jdk路径后产生了上面的报错

看了几篇博客都没法解决,我观察项目下面的misc.xml发现了问题,这里的jdk还是原来的版本

解决方法如下

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

先删除原先的sdk(看着闹心)

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

然后将sdk版本改成正确的

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

language就和对应的java版本对应就好

设置完成后就可以启动服务器了