Spring Boot 利用插件構造QueryDSL語句時報錯:You need to run build with JDK or have tools.jar on the classpath.If this occur....


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 (com.mysema.maven:apt-maven-plugin:1.1.3:process:default:generate-sources)

 

1.

仔細的看看自己的電腦的環境變量有沒有配置錯誤,我的電腦是這樣配置的:

JAVA_HOME    :     C:\JavaJDK\jdk1.8.0_20

CLASSPATH      :    .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

Path                   :    %JAVA_HOME%\jre\bin

2.改為jdk

3.在eclipse.ini文件新增jdk的javaw.exe配置

4.重啟eclipse ok 親測可用

自己確實用這種方法解決了,第三步中的javaw.exe不能少

 

轉載:https://blog.csdn.net/qq827245563/article/details/79726542


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM