user5511276
user5511276

Reputation:

Gradlew - Invalid JAVA_HOME path, when is is correct

I'm trying to build libGDX project but gradlew just stopped working. Two months ago it worked fine. It seems that updating Java broke it. Here is what happens:

1] and here are contents of Java folder(don't know why would it be useful):

2]

Upvotes: 1

Views: 954

Answers (1)

Stanislav
Stanislav

Reputation: 28106

Your JAVA_HOME variable is pointing to the jdk1.8.0_101 directory, but it (according to the screenshot in your question) use to be jre1.8.0_101 (it's JRE, not JDK).

Though, you probably need JDK to build something, not JRE, so just check one more time, whether you have JDK installed in the directory JAVA_HOME pointing to.

Upvotes: 1

Related Questions