Linux/centos JDK installation. Java environment variable Configuration

Source: Internet
Author: User
Java is an object-oriented programming language, not only absorbs the various advantages of the C + + language, but also rejects the difficult to understand C + + inheritance, pointers and other concepts, so the Java language has a powerful and easy to use two features. As the representative of static object-oriented programming language, the Java language implements the object-oriented theory, which allows programmers to do complex programming in an elegant way.
Java has the features of simplicity, object-oriented, distributed, robustness, security, platform independence and portability, multi-threading, and dynamic. Java can write desktop applications, Web applications, distributed systems, and embedded system applications.
The article relates to the package, plus the bottom free access
Upload jdk1.7.0_72.zip to server directory:/usr/local/jdk1.7

Configuration process

#cd/usr/local/jdk1.7

#unzip./jdk1.7.0_72.zip

#chmod-R 755 *

#vim/etc/profile//Copy and paste the following contents to the last

java_home=/usr/local/jdk1.7

Classpath= $JAVA _home/jre/lib/rt.jar

Path= $JAVA _home/bin/: $PATH

Export Java_home PATH CLASSPATH

#source/etc/profile//Make environment variables effective

#java-version//verification, results such as

If you are interested in this, please scan the QR code below for free for more details

Linux/centos JDK installation. Java environment variable Configuration

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.