I have both OpenJDK and Oracle Java installed on my Ubuntu. If the activated java is OpenJDK, is there a way to check the version of Oracle java in bash shell
Go to the installation folder of the oracle Java, and then open the bin folder. Now open a terminal "here" and type java -version
bin
java -version
alternativelly, paste the entire path to that bin folder in the command line followed by java -version i.e. /path/to/bin/java -version
/path/to/bin/java -version