Please do not split topics across several threads.
This makes following the conversation in the threads view very hard as the context of the other messages is missing.
If you have additional information either edit the original message or post to its thread.
Regarding the problem, the message is quite clear, isn't it? Your are running Gradle with a JRE but needed to run it with a JDK for one of the plugins used in that project working properly. Check your
JAVA_HOME
environment variable.