1

I have run java -version then it will display

-bash: /opt/java/jdk1.8.0_301/bin/java: No such file or directory.

What could cause this problem?

James Z
  • 12,209
  • 10
  • 24
  • 44
  • 1
    From what you have shared, seems like JAVA_HOME is pointing to that directory, could you print JAVA_HOME and share de output? – xalves Aug 09 '21 at 07:46
  • If everything is installed correctly you can try this https://stackoverflow.com/a/71662170/5911964 – absence Mar 29 '22 at 12:39

0 Answers0