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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…