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

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

cli roc ini文件 The 解決 tps proc 自己 沒有

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

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