centos6.4 Yum installation of JDK and Java_home settings2014-06-17 16:13 1176 people read comments (0) favorite reports Classification:Linux (3)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
#yum Search JDK
Find available installed JDK packages
The query results have the following two items (newer versions):
JAVA-1.7.0-OPENJDK.X86_64:OPENJDK Runtime Environment
JAVA-1.7.0-OPENJDK-DEVEL.X86_64:OPENJDK Development environment
Note that only the JRE is not available, install a second or two directly
#yum Install java-1.7.0-openjdk-devel.x86_64
#yum Install java-1.7.0-openjdk.x86_64
Settings under Java_home:
The default directory for Yum installation Java is/usr/lib/jvm/java
#echo Export java_home=/usr/lib/jvm/java/>> ~/.BASHRC
#source ~/.BASHRC
CentOS Yum After installing JDK configuration Java_home