Install install-oracle-java-8-in-ubuntu-via-ppa Oracle di virtual box mengunakan Sistem operasi Ubuntu versi AMD 64bit
Assalamu'alaikum
Warahmatullaahi Wabarakaatuh.
Selamat menyabut tahun baru 2017
Sahabat bloger sedikit ingin membuaat catatan aktifitas belajar saya bagaimana cara mengintall java oracle jre jdk di sitem operasi ubuntu 64 bit.
berikut langkah-langkahya untuk menginstalnya,Pertama install repositorya terlebih dahulu.
Masuk sebagai user root & password rootnya langsung saja masuk ke terminal dengan menggunakan keyboard tekan tombol CTRL + T
server@server:/$ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for server:
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
Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
For JDK9, the PPA uses standard builds from: https://jdk9.java.net/download/ (and not the Jigsaw builds!).
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/tmp4kp5db7a/secring.gpg' created
gpg: keyring `/tmp/tmp4kp5db7a/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp4kp5db7a/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
server@server:/$
oke sukses rsa key sudah tertanam agar reposetory terkonek keserver tersebut
lanjut broooo update repository packed
server@server:/$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://id.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease [17,6 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages [2.860 B]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68,1 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:8 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 Packages [2.860 B]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [43,1 kB]
Get:10 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main Translation-en [1.260 B]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [19,4 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [25,6 kB]
Get:13 http://id.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [303 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:15 http://id.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [188 kB]
Get:16 http://id.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [121 kB]
Get:17 http://id.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [141 kB]
Get:18 http://id.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.520 B]
Get:19 http://id.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [208 B]
Get:20 http://id.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [212 B]
Get:21 http://id.archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [212 B]
Fetched 1.244 kB in 5s (235 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
server@server:/$
sekarang isntall Java 8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gsfonts-x11 java-common oracle-java8-set-default
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
The following NEW packages will be installed:
gsfonts-x11 java-common oracle-java8-installer oracle-java8-set-default
0 upgraded, 4 newly installed, 0 to remove and 410 not upgraded.
Need to get 44,2 kB of archives.
After this operation, 245 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
server@server:/$ sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gsfonts-x11 java-common oracle-java8-set-default
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
The following NEW packages will be installed:
gsfonts-x11 java-common oracle-java8-installer oracle-java8-set-default
0 upgraded, 4 newly installed, 0 to remove and 410 not upgraded.
Need to get 44,2 kB of archives.
After this operation, 245 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://id.archive.ubuntu.com/ubuntu xenial/main amd64 java-common all 0.56ubuntu2 [7.742 B]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 oracle-java8-installer all 8u111+8u111arm-1~webupd8~0 [23,5 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu xenial/universe amd64 gsfonts-x11 all 0.24 [7.314 B]
Get:4 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 oracle-java8-set-default all 8u111+8u111arm-1~webupd8~0 [5.550 B]
Fetched 44,2 kB in 1s (31,5 kB/s)
Preconfiguring packages ...
Selecting previously unselected package java-common.
(Reading database ... 173124 files and directories currently installed.)
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package oracle-java8-installer.
Preparing to unpack .../oracle-java8-installer_8u111+8u111arm-1~webupd8~0_all.deb ...
Unpacking oracle-java8-installer (8u111+8u111arm-1~webupd8~0) ...
Selecting previously unselected package gsfonts-x11.
Preparing to unpack .../gsfonts-x11_0.24_all.deb ...
Unpacking gsfonts-x11 (0.24) ...
Selecting previously unselected package oracle-java8-set-default.
Preparing to unpack .../oracle-java8-set-default_8u111+8u111arm-1~webupd8~0_all.deb ...
Unpacking oracle-java8-set-default (8u111+8u111arm-1~webupd8~0) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1) ...
Setting up java-common (0.56ubuntu2) ...
Setting up oracle-java8-installer (8u111+8u111arm-1~webupd8~0) ...
No /var/cache/oracle-jdk8-installer/wgetrc file found.
Creating /var/cache/oracle-jdk8-installer/wgetrc and
using default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2016-12-25 14:32:45-- http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 118.98.42.107, 118.98.42.114
Connecting to download.oracle.com (download.oracle.com)|118.98.42.107|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz [following]
--2016-12-25 14:32:45-- https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.93.123.209, 2600:1413:1:480::2d3e, 2600:1413:1:493::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.93.123.209|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1482651286_0319cd488e9536d58e5001a379cd9e5a [following]
--2016-12-25 14:32:46-- http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz?AuthParam=1482651286_0319cd488e9536d58e5001a379cd9e5a
Connecting to download.oracle.com (download.oracle.com)|118.98.42.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 181442359 (173M) [application/x-gzip]
Saving to: ‘jdk-8u111-linux-x64.tar.gz’
0K ........ ........ ........ ........ ........ ........ 1% 681K 4m16s
3072K ........ ........ ........ ........ ........ ........ 3% 949K 3m36s
6144K ........ ........ ........ ........ ........ ........ 5% 852K 3m27s
9216K ........ ........ ........ ........ ........ ........ 6% 1,40M 3m1s
12288K ........ ........ ........ ........ ........ ........ 8% 692K 3m9s
15360K ........ ........ ........ ........ ........ ........ 10% 620K 3m17s
18432K ........ ........ ........ ........ ........ ........ 12% 1,13M 3m5s
21504K ........ ........ ........ ........ ........ ........ 13% 682K 3m7s
24576K ........ ........ ........ ........ ........ ........ 15% 1,31M 2m55s
27648K ........ ........ ........ ........ ........ ........ 17% 136K 4m22s
30720K ........ ........ ........ ........ ........ ........ 19% 574K 4m16s
33792K ........ ........ ........ ........ ........ ........ 20% 879K 4m3s
36864K ........ ........ ........ ........ ........ ........ 22% 1003K 3m49s
39936K ........ ........ ........ ........ ........ ........ 24% 512K 3m47s
43008K ........ ........ ........ ........ ........ ........ 26% 646K 3m41s
46080K ........ ........ ........ ........ ........ ........ 27% 846K 3m31s
49152K ........ ........ ........ ........ ........ ........ 29% 518K 3m28s
52224K ........ ........ ........ ........ ........ ........ 31% 741K 3m21s
55296K ........ ........ ........ ........ ........ ........ 32% 871K 3m13s
58368K ........ ........ ........ ........ ........ ........ 34% 569K 3m9s
61440K ........ ........ ........ ........ ........ ........ 36% 585K 3m4s
64512K ........ ........ ........ ........ ........ ........ 38% 907K 2m56s
67584K ........ ........ ........ ........ ........ ........ 39% 683K 2m51s
70656K ........ ........ ........ ........ ........ ........ 41% 891K 2m44s
73728K ........ ........ ........ ........ ........ ........ 43% 824K 2m37s
76800K ........ ........ ........ ........ ........ ........ 45% 820K 2m31s
79872K ........ ........ ........ ........ ........ ........ 46% 942K 2m25s
82944K ........ ........ ........ ........ ........ ........ 48% 747K 2m19s
86016K ........ ........ ........ ........ ........ ........ 50% 1,09M 2m13s
89088K ........ ........ ........ ........ ........ ........ 52% 1,07M 2m7s
92160K ........ ........ ........ ........ ........ ........ 53% 626K 2m2s
95232K ........ ........ ........ ........ ........ ........ 55% 928K 1m57s
98304K ........ ........ ........ ........ ........ ........ 57% 1,06M 1m51s
101376K ........ ........ ........ ........ ........ ........ 58% 1,10M 1m45s
104448K ........ ........ ........ ........ ........ ........ 60% 873K 1m40s
107520K ........ ........ ........ ........ ........ ........ 62% 764K 95s
110592K ........ ........ ........ ........ ........ ........ 64% 1,08M 90s
113664K ........ ........ ........ ........ ........ ........ 65% 676K 86s
116736K ........ ........ ........ ........ ........ ........ 67% 804K 81s
119808K ........ ........ ........ ........ ........ ........ 69% 699K 77s
122880K ........ ........ ........ ........ ........ ........ 71% 933K 72s
125952K ........ ........ ........ ........ ........ ........ 72% 104K 77s
129024K ........ ........ ........ ........ ........ ........ 74% 4,33M 71s
132096K ........ ........ ........ ........ ........ ........ 76% 1,34M 65s
135168K ........ ........ ........ ........ ........ ........ 78% 1,56M 60s
138240K ........ ........ ........ ........ ........ ........ 79% 1,53M 54s
141312K ........ ........ ........ ........ ........ ........ 81% 774K 49s
144384K ........ ........ ........ ........ ........ ........ 83% 1,36M 44s
147456K ........ ........ ........ ........ ........ ........ 84% 274K 41s
150528K ........ ........ ........ ........ ........ ........ 86% 3,18M 36s
153600K ........ ........ ........ ........ ........ ........ 88% 1,59M 31s
156672K ........ ........ ........ ........ ........ ........ 90% 1,50M 26s
159744K ........ ........ ........ ........ ........ ........ 91% 1,18M 21s
162816K ........ ........ ........ ........ ........ ........ 93% 984K 16s
165888K ........ ........ ........ ........ ........ ........ 95% 1,07M 12s
168960K ........ ........ ........ ........ ........ ........ 97% 1,41M 7s
172032K ........ ........ ........ ........ ........ ........ 98% 1,51M 3s
175104K ........ ........ ........ ........ 100% 1,33M=4m10s
2016-12-25 14:36:56 (709 KB/s) - ‘jdk-8u111-linux-x64.tar.gz’ saved [181442359/181442359]
Download done.
Removing outdated cached downloads...
update-alternatives: error: no alternatives for java
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JRE 8 browser plugin installed
Oracle JDK 8 installed
#####Important########
To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
E.g.: sudo apt install oracle-java8-set-default.
Setting up gsfonts-x11 (0.24) ...
Setting up oracle-java8-set-default (8u111+8u111arm-1~webupd8~0) ...
server@server:/$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
server@server:/$
Muhamad Ainurohman | Jakarta Selatan, 24 Desember 2016
Terima kasih Semoga bermanfaat
Terima
Kasih atas kunjungan di blog ini.
Wassalamu'alaikum
Warahmatullaahi Wabarakaatuh.
#ubuntu #opensource #linux #java