Cannot create a server using the selected type

以前java web开发基本都是用myeclipse,而且实习这半年基本没有写过web程序了,最近决定抽业余时间,“重返正途”。

呵呵,言归正传

 

问题描述:在eclipse中创建server时,当选择"Tomcat v6.0 Server"就会出错,不允许我创建,如下图:


Cannot create a server using the selected type

 

原因:我在整理电脑的时候,把原来配置的tomcat的路径给移动,所以eclipse不能找到,也不能重新创建

 

解决方法:Window->preferences->Server->Runtime Environment,改变tomcat的目录为你安装的目录,然后保存,这样就可以建立Tomcat server了,如下图:

 


Cannot create a server using the selected type

 

如上图所示,把tomcat的位置修改为你的目前的目录就OK了。