解决“在eclipse中配置Tomcat时,出现Cannot create a server using the selected type的异常”的有关问题

解决“在eclipse中配置Tomcat时,出现Cannot create a server using the selected type的错误”的问题

在eclipse中配置Tomcat时,出现“Cannot create a server using the selected type”的错误。

出现原因:Tomcat重新安装,并且安装目录改变了。

解决方案:在“Window->preferences->Server->Runtime Environment”,编辑Tomcat的目录为你新安装的目录,然后保存,这样就可以建立Tomcat server了。