Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
347 views
in Technique[技术] by (71.8m points)

java - JAVA_HOME is set to an invalid directory but echo %JAVA_HOME% is still works

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

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

So I don't really know what went wrong.

question from:https://stackoverflow.com/questions/65867777/java-home-is-set-to-an-invalid-directory-but-echo-java-home-is-still-works

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...