본문 바로가기
SW Developer

Ubuntu 14.04에 Oracle JDK 8 다운로드 및 설치 방법

by ashespia 2020. 4. 6.
SMALL

Ubuntu 14.04에서 Oracle에서 JDK 8 버전을 다운로드 받으려면 회원가입을 하라는 화면이 뜬다.

 

Oracle JDK 8 다운로드 페이지

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

 

 

해당 페이지에서 원하는 패키지를 고르고 클릭하면 로그인 페이지가 뜬다.

회원가입하지 않고 다운로드 받는 방법

wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz

 

다운로드를 Ubuntu 14.04에서 실행하면 아래와 같은 화면이 발생한다.

 

# wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz
--2020-04-06 15:34:23-- http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 23.212.12.43 Connecting to download.oracle.com (download.oracle.com)|23.212.12.43|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz [following] --2020-04-06 15:34:23-- https://edelivery.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.76.87.56, 2600:140b:400:3b7::366, 2600:140b:400:38d::366 Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.76.87.56|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz?AuthParam=1586154983_0a95be3c2e259f9985331efce41e7f14 [following] --2020-04-06 15:34:24-- http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz?AuthParam=1586154983_0a95be3c2e259f9985331efce41e7f14 Connecting to download.oracle.com (download.oracle.com)|23.212.12.43|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz?AuthParam=1586154983_0a95be3c2e259f9985331efce41e7f14 [following] --2020-04-06 15:34:24-- https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz?AuthParam=1586154983_0a95be3c2e259f9985331efce41e7f14 Connecting to download.oracle.com (download.oracle.com)|23.212.12.43|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 194545143 (186M) [application/x-gzip] Saving to: ‘jdk-8u241-linux-x64.tar.gz’ 100%[================================================================================================================================================>] 194,545,143 10.6MB/s in 21s 2020-04-06 15:34:44 (8.89 MB/s) - ‘jdk-8u241-linux-x64.tar.gz’ saved [194545143/194545143]
root@docker-VirtualBox:/tmp#

 

다운로드 받은 tar.gz 압축해제 방법

tar zxvf jdk-8u241-linux-x64.tar.gz

 

이제 다운로드 받은 JDK를 실행하고 Java 설정을 진행하면 된다.

LIST

댓글