CentOS7.6安装JDK(Openjdk)
安装开始:
第一步:
使用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
一直想做事,却止步于思考。