Linux安装JDK1.8

查看java可安装列表

yum list java*

安装java


yum -y install java-1.8.0-openjdk*x86_64
	

查看是否安装成功


yum list installed | grep java
	

查看java版本


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

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