Development of E-Shop 2 (Linux configuration jdk)

Source: Internet
Author: User

1. Download the JDK version

http://pan.baidu.com/s/1eR16I6e

2: Remove the JDK that comes with CentOS

2.1 See if Linux has installed and found the path to the installation

Rpm-qa |grep JDK

More RPM Commands: Please refer to: http://man.linuxde.net/rpm

2.2 If the JDK is loaded with uninstall

Yum Remove * * * *

2.3 java-version See if delete Chen Gong

3 Create a Java folder in the USR directory and put the downloaded Linux version of the JDK's package inside

Mkdir/usr/java

4 Unpacking the JDK package

TAR-ZXVF jdk-7u79-linux-x64.tar.gz

For more tar commands see http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.html

5: Configure Classpath

5.1 Open the configuration file for the environment variable

Vim/etc/profile

5.2 at the bottom plus

Export java_home=/usr/java/jdk1.7.0_80
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/jre/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Path= $JAVA _home/bin

5.3 Save Exit

5.4 Let the configuration take effect immediately

Source/etc/profile

5.5 Testing

  

Development of E-Shop 2 (Linux configuration jdk)

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.