公司给新配的电脑,配置好环境后,想往Tomcat下添加项目,结果报java
The selected server is enabled,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
网上查阅资料说是由于JDK配置有问题,spa
解决方法:
code
选择Window---》preperences----》servers---》Tomcat 7.x 请看下图:server
不知道你有没有看出问题在哪里,上图的Tomcat 7.x JDK name处显示的是jre8,此处应该显示的是JDK的地址才对it
修改为正确的JDK的地址便可,请看下图:class
再次添加OK!jdk