安装开始:
第一步:
使用yum源安装 OpenJDK,yum install -y java-1.8.0-openjdk
第二步:
查看安装版本,java -version
运行时发现错误汇总:
错误一:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决办法:
yum install -y java-devel