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

 

posted @ 2019-02-27 10:45 博尔特希 阅读(...) 评论(...) 编辑 收藏