Installing the JDK in a Linux environment

Source: Internet
Author: User

Installation Environment:Installation Environment: CentOS-6.5 Installation Method: Source Installation Installing the JDKSoftware: jdk-8u101-linux-x64.tar.gz  Files in/usr/yanghai extract to/usr/local/java extract files to/USR/LOCAL/JAVATAR-ZXVF jdk-8u101-linux-x64.tar.gz-c/usr/local/java Configuration: Edit profile with Vim/etc/profile
1 java_home=/usr/local/java/jdk1. 8 . 0_101 2 path= $JAVA _home/bin: $PATH3 classpath= $JAVA _home/jre/lib/ext: $JAVA _home/lib/  Tools.jar4 export PATH java_home CLASSPATH

Don't forget to execute the command: Source/etc/profile Verify that the installation was successful: Java-versionjavac-version appears with the version number, indicating installation OK. Reference: http://www.cnblogs.com/jilianggqq/p/4141641.html These are the 16 have a period of time the installation process of the record, the recent collation of notes, put it here first! If there are errors, please correct me! Thanks

Installing the JDK in a Linux environment

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.