es版本6.3,执行 gradle idea的时候报错,有人遇到吗,报错信息如下
C:\workspace\elasticsearch-6.3.0>gradle idea
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.8/us ... html.
Daemon will be stopped at the end of the build stopping after processing
> Configure project :benchmarks
=======================================
Elasticsearch Build Hamster says Hello!
=======================================
Gradle Version : 4.8
OS Info : Windows 10 10.0 (amd64)
JDK Version : Oracle Corporation 1.8.0_161 [Java HotSpot(TM) 64-Bit Server VM 25.161-b12]
JAVA_HOME : C:\opensource\java\jdk1.8
Random Testing Seed : 764AB534FB4320F7
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\workspace\elasticsearch-6.3.0\benchmarks\build.gradle' line: 31
* What went wrong:
A problem occurred evaluating project ':benchmarks'.
> Failed to apply plugin [id 'elasticsearch.build']
> the environment variable JAVA_HOME must be set to a JDK installation directory for Java 1.10 but is [C:\opensource\java\jdk1.8] corresponding to [1.8]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.8/us ... nings
BUILD FAILED in 15s
2 个回复
zxaaaa
赞同来自:
大慈大悲掌 - 要我一直笑吗?https://www.jianshu.com/u/bfa06856a726
赞同来自:
下载新的jdk10然后把环境变量指过去