Linux (CentOS6.5 example) installs Oracle's latest version of the JDK (JDK1.8)

Source: Internet
Author: User

This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!

Many of our components need to use Oracle's latest version of the JDK, so we need to install it on our servers, here are the installation instructions:

Offline installation (for environments with no public connection)

First to the following official page:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

After entering the download page, first select Accept agreement, then download jdk-xuxx-linux-x64.tar.gz

Then use FTP to upload to the server's/tmp directory

Perform decompression operations (we extract to the/comexhome directory as a common JDK)

Tar-zxf/tmp/jdk-8u91-linux-x64.gz-c/comexhome

Then query the decompression situation:

Ll/comexhome |grep JDK

Modify folder name

Mv/comexhome/jdk1.8.0_91/comexhome/jdk

On-line installation (for environments with a public network connection)

Direct execution of Wget acquisition

wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie"/HTTP/ Download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz

Get the same after other steps and offline installation

=============================================================

This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!

Linux (CentOS6.5 example) installs Oracle's latest version of the JDK (JDK1.8)

Related Article

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.