如题所述
linux 中一般都带着openjdk,你敲一个java -version,能显示类似以下信息就说明安装了。
[root@CentOS7L3 advanceio]# java -version
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
[root@CentOS7L3 advanceio]# java -version
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
温馨提示:答案为网友推荐,仅供参考