eclipse+MyEclipse+tomcat下配置建立J2EE开发环境


在配置完后,点击Deploy MyEclipse J2EE project to Server...时想要用tomcat运行时会出现以下错误的提示:
The selected server is enabled, but is not configured property, Deployment to it will not be permitted unitl the problem is corrected. Please navigate to the server prefence pages and verify the field with the prompt:Tomcat JDKname

解决的方法:
菜单window-->preferences-->Java-->installed jres 检查一下jdk是指向什么路径,一般eclipse默认自带的,新建一个,指向自己安装的JDK目录
然后在window-->preferences-->MyEclipse-->Applications Servers-->Tomcat 5-->JDK,在下拉框里选择刚刚新建的JDK名