Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
346 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...