Linux Installation Configuration JDK

Source: Internet
Author: User

First, download the JDK

Reference: http://www.codingyun.com/article/40.html

You can download it locally and then FTP to the server

can also be downloaded directly from the server (Windows version of the 32-bit and 64-bit, Ubuntu (Linux) version of the non-differentiated)

Http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.tar.gz? Authparam=1447866593_14c651521d060c106fe19b59b69722e4

There is a problem (wget get only page 5037 what), can refer to: http://www.cnblogs.com/1995hxt/p/4976436.html, behind the Authparam himself F12 get

Second, decompression and installation

Unzip first

1 tar zxvf jdk-8u65-linux-x64.tar.gz -C /usr/java/

then renamed to Java7.

1 cd /usr/java/
1 mv jdk1.8.0_xx java8

Third, configure environment variables

1 vi ~/.bashrc

Add the following four sentences at the back

1234 export JAVA_HOME=/usr/java/java8export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATH

Exit VI refresh variable after saving to make the configuration take effect immediately

1 source ~/.bashrc

Enter the bin directory of Tomcat

1 cd $CATALINA_HOME/bin

Iv. Testing

[Email protected]:~$ java-version  

Linux Installation 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.