myeclipse7.0装好后,编完程序用tomcat无法发布,弹出错误框!!!!!

来源:百度知道 编辑:UC知道 时间:2024/06/24 13:56:22
myeclipse7.0装好后,想要用tomcat6.0发布,结果添加tomcat时报错。

the selected server is enable, but is not configured properly. Deployment to it will not be permitted until the problem is corrected. Please navigate to the server preference pages and verify the field with the prompt:Tomcat JDK name.

tomcat的地址也导入了,也重新装过了,就是不好使。以前用的是myeclipse6.5都没事,之后把eclipse和myeclipse6.5删除后重装就出现这个问题了!!请帮帮我,谢谢!!
是在myeclipse中添加tomcat为服务器时报的错,就是无法添加tomcat进行发布,东西我都重装过了还是没有用

出现这个问题的原因一般是你类路径错误了,也就是eclipse的classpath发生错误了,你要是不嫌麻烦就检查下你项目下的.classpath文件,看看里面的路径有没有什么问题,然后重新部署项目到tomcat应该就可以解决这个问题,如果实在不行就删除所有和eclipse相关的文件,然后重新建一个新的工程和你当前项目一样的,然后重新指定类路径也就是jar包啥的。。。如果还不能解决那就不是这个问题。。。

最简单的原因就是你在配置tomcat之后,上面有able和enable单选按钮,你没有指定为able!