"우분투 Java 8 설치"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 우분투 Java 8 설치 문서를 우분투 Java 1.8 설치 문서로 옮겼습니다)
잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
5번째 줄: 5번째 줄:


==확인==
==확인==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# java -version
root@zetawiki:~# java -version
java version "1.7.0_21"
java version "1.7.0_21"
13번째 줄: 13번째 줄:


==software-properties-common 설치==
==software-properties-common 설치==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# apt-get install software-properties-common
root@zetawiki:~# apt-get install software-properties-common
... (생략)
... (생략)
27번째 줄: 27번째 줄:
Do you want to continue? [Y/n]  
Do you want to continue? [Y/n]  
</source>
</source>
<source lang='cli'>
<source lang='console'>
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-gi amd64 3.12.0-1ubuntu1 [154 kB]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-gi amd64 3.12.0-1ubuntu1 [154 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
37번째 줄: 37번째 줄:


==apt 저장소 추가==
==apt 저장소 추가==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# add-apt-repository ppa:webupd8team/java
root@zetawiki:~# add-apt-repository ppa:webupd8team/java
  Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.
  Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.
53번째 줄: 53번째 줄:
Press [ENTER] to continue or ctrl-c to cancel adding it
Press [ENTER] to continue or ctrl-c to cancel adding it
</source>
</source>
<source lang='cli'>
<source lang='console'>
gpg: keyring `/tmp/tmpqoukdlju/secring.gpg' created
gpg: keyring `/tmp/tmpqoukdlju/secring.gpg' created
gpg: keyring `/tmp/tmpqoukdlju/pubring.gpg' created
gpg: keyring `/tmp/tmpqoukdlju/pubring.gpg' created
65번째 줄: 65번째 줄:


==apt-get update==
==apt-get update==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# apt-get update
root@zetawiki:~# apt-get update
... (생략)
... (생략)
75번째 줄: 75번째 줄:


==oracle-java8-installer 설치==
==oracle-java8-installer 설치==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# apt-get install oracle-java8-installer
root@zetawiki:~# apt-get install oracle-java8-installer
Reading package lists... Done
Reading package lists... Done
97번째 줄: 97번째 줄:
Do you want to continue? [Y/n]  
Do you want to continue? [Y/n]  
</source>
</source>
<source lang='cli'>
<source lang='console'>
... (생략)
... (생략)
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxfont1 amd64 1:1.4.7-1ubuntu0.2 [95.0 kB]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxfont1 amd64 1:1.4.7-1ubuntu0.2 [95.0 kB]
105번째 줄: 105번째 줄:
* "Configuring oracle-java8-installer" --- [Ok]
* "Configuring oracle-java8-installer" --- [Ok]
* "Do you accept the Oracle Binary Code license terms? " --- [Yes]
* "Do you accept the Oracle Binary Code license terms? " --- [Yes]
<source lang='cli'>
<source lang='console'>
... (생략)
... (생략)
Connecting to download.oracle.com (download.oracle.com)|23.65.188.27|:80... connected.
Connecting to download.oracle.com (download.oracle.com)|23.65.188.27|:80... connected.
123번째 줄: 123번째 줄:


==확인 2==
==확인 2==
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# java -version
root@zetawiki:~# java -version
java version "1.8.0_66"
java version "1.8.0_66"

2016년 3월 29일 (화) 14:13 판

1 개요

우분투 Java 1.8 설치
우분투 Java 8 설치
우분투 자바 8 설치

2 확인

root@zetawiki:~# java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

3 software-properties-common 설치

root@zetawiki:~# apt-get install software-properties-common
... (생략)
The following extra packages will be installed:
  python3-gi python3-software-properties
The following NEW packages will be installed:
  python3-gi software-properties-common
The following packages will be upgraded:
  python3-software-properties
1 upgraded, 2 newly installed, 0 to remove and 53 not upgraded.
Need to get 183 kB of archives.
After this operation, 876 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-gi amd64 3.12.0-1ubuntu1 [154 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
... (생략)
Setting up python3-software-properties (0.92.37.6) ...
Setting up software-properties-common (0.92.37.6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

4 apt 저장소 추가

root@zetawiki:~# add-apt-repository ppa:webupd8team/java
 Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpqoukdlju/secring.gpg' created
gpg: keyring `/tmp/tmpqoukdlju/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpqoukdlju/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

5 apt-get update

root@zetawiki:~# apt-get update
... (생략)
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 4,259 kB in 22s (187 kB/s)                                             
Reading package lists... Done

6 oracle-java8-installer 설치

root@zetawiki:~# apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gsfonts gsfonts-x11 libxfont1 xfonts-encodings xfonts-utils
Suggested packages:
  binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core
  ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
  ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox iceape-browser
  mozilla-browser epiphany-gecko epiphany-webkit epiphany-browser galeon
  midbrowser moblin-web-browser xulrunner xulrunner-1.9 konqueror
  chromium-browser midori google-chrome
The following NEW packages will be installed:
  gsfonts gsfonts-x11 libxfont1 oracle-java8-installer xfonts-encodings
  xfonts-utils
0 upgraded, 6 newly installed, 0 to remove and 53 not upgraded.
Need to get 4,158 kB of archives.
After this operation, 6,461 kB of additional disk space will be used.
Do you want to continue? [Y/n]
... (생략)
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libxfont1 amd64 1:1.4.7-1ubuntu0.2 [95.0 kB]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java8-installer all 8u66+8u65arm-1~webupd8~1 [22.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/main gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1
  • "Configuring oracle-java8-installer" --- [Ok]
  • "Do you accept the Oracle Binary Code license terms? " --- [Yes]
... (생략)
Connecting to download.oracle.com (download.oracle.com)|23.65.188.27|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 181287376 (173M) [application/x-gzip]
Saving to: ‘jdk-8u66-linux-x64.tar.gz’

     0K ........ ........ ........ ........ ........ ........  1% 9.38M 18s
  3072K ........ ........ ........ ........ ........ ........  3% 16.8M 14s
  6144K ........ ........ ........ ........ ........ ........  5% 18.3M 12s
... (생략)
Setting up xfonts-encodings (1:1.0.4-1ubuntu1) ...
Setting up xfonts-utils (1:7.7+1) ...
Setting up gsfonts-x11 (0.22) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

7 확인 2

root@zetawiki:~# java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

8 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}