公司給新配的電腦,配置好環境後,想往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