1 개요[ | ]
- 우분투 Java 8 설치
- 우분투 JDK 8 설치
- 우분투 자바 8 설치
2 확인[ | ]
Console
Copy
root@zetawiki:~# java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
root@zetawiki:~# javac -version
javac 1.7.0_101
3 software-properties-common 설치[ | ]

Console
Copy
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]
Console
Copy
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 저장소 추가[ | ]
Console
Copy
root@zetawiki:~# add-apt-repository ppa:webupd8team/java
... (생략)
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
Console
Copy
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[ | ]
Console
Copy
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 설치[ | ]
Console
Copy
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]
Console
Copy
... (생략)
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] --- [Yes]
Console
Copy
... (생략)
Length: 181352138 (173M) [application/x-gzip]
Saving to: ‘jdk-8u101-linux-x64.tar.gz’
0K ........ ........ ........ ........ ........ ........ 1% 8.11M 21s
3072K ........ ........ ........ ........ ........ ........ 3% 15.1M 16s
6144K ........ ........ ........ ........ ........ ........ 5% 18.5M 13s
... (생략)
Setting up xfonts-utils (1:7.7+1) ...
Setting up gsfonts-x11 (0.22) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
7 확인 2[ | ]
Console
Copy
root@zetawiki:~# java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
root@zetawiki:~# javac -version
javac 1.8.0_101
8 같이 보기[ | ]
9 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.