Tar.gz Package Install Jdk-8u25 method and note place (download historical version of JDK method)

Source: Internet
Author: User

    1. To download the historical version of the JDK:

Http://jingyan.baidu.com/article/9989c746064d46f648ecfe9a.html


2. Download the JDK and pass it to the root directory.

3. Create a directory and place the JDK extract file

There are two ways to install JDK in a Linux environment, one for RPM installation and the other for source code (compiled)

As a result, two installation files are available on the Oracle website, one in RPM format and the other in GZ format, both of which are similar in both ways.

[[email protected] ~]# mkdir/usr/jdk[[email protected] ~]# tar XF jdk-8u25-linux-x64.gz-c/usr/jdk

3, for the above two methods installed JDK will also need to configure the Java environment variables. Here I configure to the end of the /etc/profile file, add the following code

Export Java_home=/usr/jdk/jdk1.8.0_25export android_java_home= $JAVA _homeexport jre_home=/usr/jdk/jdk1.8.0_25/ Jreexport classpath=/usr/jdk/jdk1.8.0_25/libexport path= $JAVA _home/bin: $PATH

4. Finally

Source/etc/profile

5. See if the Java environment is installed


650) this.width=650; "src=" http://www.ahlinux.com/uploadfile/2014/1222/20141222064002973.png "alt=" \ "/>

This article is from the "clear" blog, make sure to keep this source http://duanyexuanmu.blog.51cto.com/1010786/1751156

Tar.gz Package Install Jdk-8u25 method and note place (download historical version of JDK method)

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.