这个配置咋改,这个的java jdk咋改呀

wha37 发布于 2019/06/06 13:30
阅读 335
收藏 0

Serverless 架构就不要服务器了?>>>

Working Directory: D:\ra\datax-web-master
Gradle User Home: C:\Users\Administrator\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 3.5.1
Java Home: D:\jdk
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Tests: com.iminstage.dataxweb.DataxWebApplication

:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar. Please check that D:\jdk contains a valid JDK installation.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.483 secs
 

加载中
0
maradona
maradona

你确定D:\jdk是jdk的安装目录,而不是jre?

0
JavaGG
JavaGG

先要确认你的环境变量那是用jdk而不是jre,如果还不行就在build.gradle同一个目录上建一个叫gradle.properties的文件把org.gradle.java.home=/usr/jdk1.8.0_181/  这个写上,强行指定jdk

0
一条开发狗
一条开发狗

2019年最新总结,从程序员到CTO,从专业走向卓越,大牛分享文档pdf与PPT整理

https://github.com/0voice/from_coder_to_expert

返回顶部
顶部