来源:http://archive.cnblogs.com/a/2130474/
在eclipse中安装tomcat服务器,报错" Cannot create a server using the selected type ".
原因:以前安装的tomcat目录改变
解决方法:Window->preferences->Server->Runtime Environment,改变tomcat的目录为你安装的目录,然后保存,这样就可以建立Tomcat server了。
还有另一种方式:
在当前工作区中如下路径:/.metadata/.plugins/org.eclipse.core.runtime/.settings,记住不是eclispe程序的路径。
把其下org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉
后重启eclipse即可。
本文介绍了解决Eclipse中安装Tomcat服务器时出现的“Cannot create a server using the selected type”错误的方法。一种是通过更改服务器运行时环境中的Tomcat目录设置;另一种是删除特定配置文件并重启Eclipse。
1441

被折叠的 条评论
为什么被折叠?



