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

后端 未结 5 1359
感情败类
感情败类 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:13

    yes, you need to know the install path of the oracle one. then /path/to/there/bin/java -version. Assume that the openjdk one is your default java.

提交回复
热议问题