【前言】{此文章是作者在遇到此类问题时候的百度以及实践得来的结果,如有雷同,即是百度}
【百度答案1】
http://blog.csdn.net/tender001/article/details/8244674。
在出现这个情况的时候我们点edit时候发现那里runtime没有可以选的server.
怎么办呢?
我用的myclipse8.5
其它的好像可以在首选 项中找到Server ->Installed Runtimes 添加一个你安装好的tomcat 就行了.
可是这个版本没有这个installed runtimes,就算你加入了tomcat你也没办法加进来.
找到一个好方法
1,File->New->Other->Server->Apache->Tomcat v6.0 Server(选中你安装的那个tomcat目录就行了)
然后下一步 再把你刚才那个导入出错的工程选择下 就行了
注意在new时,别忘了勾上Show All Wizards 不然那个server不会出来的
或者
2,Project->Properties->Java Build Path->Libraries->Add Library->WTP Server Runtime(MyEclipse incompatible)->next->Tomcat v6.0 Server->Tomcat v6.0 Server
大功告成 :-)
【实践结果(Eclipse)】