

So, what I can advise is install the JDK again, which "Oracle JDK" is preferred over than "OpenJDK". Type -a: Return not found when symlink is broken orĪll of them will return not found if the input file doesn't exist. Type: Return found even non-executable, and return not found if Whereis: Still return found even symlink broken or non-executable.

Please note that the symlink target OR non-symlink source file, both must be executable ( chmod +x to set it), otherwise type -a command will return not found even though file exist ( type will still return regardless of executable). I recommend you use type -a java to get the correct result. So if /usr/bin/java still exist, even though the symlink target is broken, it will still return java: /usr/bin/java.

I would like to believe that it is not installed if so why the system
