码迷,mamicode.com
首页 > 编程语言 > 详细

Spring Boot 构建项目时报错: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-plugi

时间:2019-02-12 20:08:48      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:文件   src   自己的   .net   source   sdn   efault   detail   方法   

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 构建项目时报错: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-plugi

标签:文件   src   自己的   .net   source   sdn   efault   detail   方法   

原文地址:https://www.cnblogs.com/hanwuxing/p/10366859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
分享档案
周排行
mamicode.com排行更多图片
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!