Maven報錯Please ensure you are using JDK 1.4 or above and not a JRE解決方法

在eclipse下用maven編譯時,可能報以下提示  Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required).  原因:eclipse默認是使用jre作爲運行環境,而maven編譯需要jdk作爲運行環境 因此,我們只要設置爲jdk即可。
相關文章
相關標籤/搜索