(1)
/opt/oracle/jdk1.8.0_431/bin/java
is an absolute path, so the shell does not use $PATH
to "resolve" it. (2) What is the output of file /opt/oracle/jdk1.8.0_431/bin/java
? (3) This maybe?