首页 > 代码库 > yun install java

yun install java

# yum install java-1.7.0-openjdk

 

# yum install java-1.7.0-openjdk-devel

 

需要执行以上两步

查看版本

# java -version
java version "1.7.0_71"
OpenJDK Runtime Environment (rhel-2.5.3.1.el6-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

yun install java