天天看點

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

我打開項目報錯是這樣的

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

 pom.xml

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

jdk配置什麼的都是好的    但是還是報錯

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤
You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

解決錯誤 :

  1.打開你eclipse的根目錄,找到eclipse.ini  這個檔案夾打開

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

  2.打開是這個樣子

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

3.然後找到jdk\bin目錄下的\javaw.exe

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

4.把javaw.exe的路徑複制到eclipse.ini檔案的第一行

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

5.這樣的就可以了   重新開機eclipse   還是報錯  滑鼠右鍵點項目 maven-----》update projet就可以了  

You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well 錯誤

繼續閱讀