Idea start report impossible to ping server at localhost:1099

The first is that the idea startup will report the error "unable to ping server at localhost:1099".
There are many solutions online.
My environment is ubuntu 18.04
idea 2019.1
. Two JDKs are installed. They are jdk8 and jdk11.
My solution:

Click File=>Project in the upper left corner Stucture,
then select your jdk as shown in the figure,
mine is tomcat8.5, so I choose 1.8, pay attention to the jdk version and tomcat version
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_39067447/article/details/89476823