How to check Oracle Java version if multiple versions of Java installed on Ubuntu

后端 未结 5 1360
感情败类
感情败类 2021-02-07 10:46

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

5条回答
  •  再見小時候
    2021-02-07 11:32

    Go to the installation folder of the oracle Java, and then open the bin folder. Now open a terminal "here" and type 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

提交回复
热议问题