So i, I can simplify like below:
type -a: Return not found when symlink is broken or non-executable.
So, what iI can advise is install the jdkJDK again, which "oracle jdk""Oracle JDK" is preferpreferred over than "openjdk""OpenJDK".
The version number of 8u91 version above is keep updating, so you should always visits oracleOracle websites to find out the latest version. Click the JDK DOWNLOAD button will go to this page which shows the latest version number and its correct filename.
You can also download the docs which the real link can be found here page, and unzip it (Assume your jdkJDK has been installed at /usr/java/jdk1.8.0_91/):
Then use this two commands to choose the correct javac and java, i. I believe you only have one option (This sample shows jdk1.8.0_74 due to mine is not the latest 8u91):