You need to run build with JDK or have tools.jar问题解决
Posted 华格瑞沙
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了You need to run build with JDK or have tools.jar问题解决相关的知识,希望对你有一定的参考价值。
一、导入Maven项目后,pom文件提示信息
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)
- 检查JDK安装是否正确,CMD窗口,java -version可以看到版本信息,正确
- 检查STS配置的JDK路径,确认无误
- eclipse是在eclipse.ini文件(STS是在STS.ini文件)新增jdk的javaw.exe配置
-vm D:/Program Files/Java/jdk1.8.0_171/bin/javaw.exe -startup plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.700.v20180518-1200 -product org.springsource.sts.ide --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.8 --add-modules=ALL-SYSTEM -Xms40m -Dosgi.module.lock.timeout=10 -Dorg.eclipse.swt.browser.IEVersion=10001 -Xmx1200m -javaagent:D:spring-tool-suitests-bundlests-3.9.5.RELEASElombok.jar
- 重启eclipse或者STS,亲测可用
以上是关于You need to run build with JDK or have tools.jar问题解决的主要内容,如果未能解决你的问题,请参考以下文章
Spring Boot 利用插件构造QueryDSL语句时报错:You need to run build with JDK or have tools.jar on the classpath.If
Spring Boot 构建项目时报错:You need to run build with JDK or have tools.jar on the classpath.If this occure
You need tcl 8.5 or newer in order to run the Redis test.
Redis 安装报错 You need tcl 8.5 or newer in order to run the Redis test
conda激活环境报错:IMPORTANT: You may need to close and restart your shell after running ‘conda init‘.
Couldn't find a tree builder with the features you requested: lxml. Do you need to install a par