Linux安装JDK1.8

查看java可安装列表

  1. yum list java*

安装java

  1. yum -y install java-1.8.0-openjdk*x86_64

查看是否安装成功

  1. yum list installed | grep java

查看java版本

  1. [[email protected] ~]# java -version
  2. openjdk version "1.8.0_191"
  3. OpenJDK Runtime Environment (build 1.8.0_191-b12)
  4. OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

win下jdk配置,请下载jdk1.8然后配置环境变量