You need to run build with JDK or have tools.jar on the classpath.If this oc

逃离我推掉我的手 2022-05-28 02:53 214阅读 0赞

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

Path : %JAVA_HOME%\jre\bin;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

2.改为jdk

20180328140534375

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

20180328140809829

4.重启eclipse ok 亲测可用

发表评论

表情:
评论列表 (有 0 条评论,214人围观)

还没有评论,来说两句吧...

相关阅读