Tuesday, October 31, 2017

Eclipse: Maven build

在Maven build的時候已經試過出現幾次以下錯誤信息︰
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

其實只要按以下幾個步驟進行就可以重設JDK的位置︰
  • Go to Window -> Preferences -> Java -> installed JREs 
  • Select the JDK you are using (C:\Program Files\Java\jdk1.6.xx) 
  • Press Edit to see the list of jars including tools.jar, OW you can add it as Add External JAR

No comments: