CentOS Yum After installing JDK configuration Java_home

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.