Windows 10-
So I was trying to install gradle and set up and stuff (to code a minecraft mod using forge). I got to the point where I just need to check gradle version by doing Gradle -v and to end up seeing this
Gradle -v
ERROR: JAVA_HOME is set to an invalid directory: C:Program FilesJavajdk-1.8.0_231 Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
So I typed echo %JAVA_HOME% and it responds with C:Program FilesJavajdk-1.8.0_231
echo %JAVA_HOME%
C:Program FilesJavajdk-1.8.0_231
So I don't really know what went wrong.
2.1m questions
2.1m answers
60 comments
57.0k users