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
337 views
in Technique[技术] by (71.8m points)

java - Why am I getting Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.9.1 error?


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

1 Answer

0 votes
by (71.8m points)

You added your Java installation to the end of your PATH. When you just execute java then the first matching executable will be run, which will be your previous already-installed Java installations.

Replace your PATH-setting with this one to prioritize your new Java installation:

export PATH=$JAVA_HOME/bin:$PATH

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

...