CentOS Installation JDK 1.7

Source: Internet
Author: User

1. JDK 1.7 (1.7.0_25)

For:

Http://www.Oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html


RPM-IVH/Catalogue/jdk-7-linux-x64.rpm


2. Setting Environment variables

650) this.width=650; "alt=" Copy Code "src=" Http://common.cnblogs.com/images/copycode.gif "/>

Here we need to locate the profile file and add the environment variable: append the following information to the profile file: Export Java_home=/usr/java/jdk1.7.0export classpath=.:/ Jre/lib/rt.jar:/lib/dt.jar:/lib/tools.jarexport Path=:/bin Save Exit, execute: #source/etc/profile#java-version[[email  Protected] usr]# Java-versionjava version "1.7.0_75" Java (tm) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot (tm) Client VM (build 24.75-b04, mixed mode, sharing) [[email protected] usr]#


CentOS Installation JDK 1.7

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.