Langsung ke konten utama

CARA INSTALL JAVA 8 DI UBUNTU 16


Assalamu'alaikum Warahmatullaahi Wabarakaatuh.

 Berikut cara mengistall java 8 di ubuntu versi 2016


java8



berikut history lengkapnya :



 * openjdk-8-jre-headless
 * gcj-4.8-jre-headless
 * openjdk-9-jre-headless
Try: sudo apt install <selected package>
server@server-VirtualBox:~$ 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/tmp97pt9bca/secring.gpg' created
gpg: keyring `/tmp/tmp97pt9bca/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp97pt9bca/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-VirtualBox:~$ clear

server@server-VirtualBox:~$ sudo ^C
server@server-VirtualBox:~$ sudo apt-get update
Hit:1 http://kambing.ui.ac.id/ubuntu xenial InRelease                                              
Hit:2 http://kambing.ui.ac.id/ubuntu xenial-updates InRelease                                      
Hit:3 http://kambing.ui.ac.id/ubuntu xenial-backports InRelease                                   
Hit:4 http://kambing.ui.ac.id/ubuntu xenial-security InRelease         
Get:5 http://kambing.ui.ac.id/ubuntu xenial/main Translation-id [7.920 B]
Get:6 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease [17,6 kB]
Get:7 http://kambing.ui.ac.id/ubuntu xenial/restricted Translation-id [1.208 B]                      
Get:8 http://kambing.ui.ac.id/ubuntu xenial/universe Translation-id [2.124 B]                          
Get:9 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 Packages [2.860 B]
Get:10 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main Translation-en [1.260 B]
Fetched 32,9 kB in 5s (5.595 B/s)
Reading package lists... Done
server@server-VirtualBox:~$ 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 435 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://kambing.ui.ac.id/ubuntu xenial/main i386 java-common all 0.56ubuntu2 [7.742 B]
Get:2 http://kambing.ui.ac.id/ubuntu xenial/universe i386 gsfonts-x11 all 0.24 [7.314 B]
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 oracle-java8-installer all 8u111+8u111arm-1~webupd8~0 [23,5 kB]
Get:4 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 oracle-java8-set-default all 8u111+8u111arm-1~webupd8~0 [5.550 B]
Fetched 44,2 kB in 1s (27,8 kB/s)
Prakonfigurasi paket ...
Selecting previously unselected package java-common.
(Sedang membaca basis data ...  172425 berkas atau direktori telah terpasang.)
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) ...
Sedang menata java-common (0.56ubuntu2) ...
Sedang menata 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-20 13:46:19--  http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 118.98.42.10, 118.98.42.202
Connecting to download.oracle.com (download.oracle.com)|118.98.42.10|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-i586.tar.gz [following]
--2016-12-20 13:46:19--  https://edelivery.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-i586.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-i586.tar.gz?AuthParam=1482216500_ead9157ee320b933de08e642b756ca62 [following]
--2016-12-20 13:46:21--  http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-i586.tar.gz?AuthParam=1482216500_ead9157ee320b933de08e642b756ca62
Connecting to download.oracle.com (download.oracle.com)|118.98.42.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 183537560 (175M) [application/x-gzip]
Saving to: ‘jdk-8u111-linux-i586.tar.gz’

     0K ........ ........ ........ ........ ........ ........  1%  143K 20m28s
  3072K ........ ........ ........ ........ ........ ........  3%  210K 16m55s
  6144K ........ ........ ........ ........ ........ ........  5%  303K 14m11s
  9216K ........ ........ ........ ........ ........ ........  6%  194K 14m2s
 12288K ........ ........ ........ ........ ........ ........  8%  309K 12m47s
 15360K ........ ........ ........ ........ ........ ........ 10%  445K 11m28s
 18432K ........ ........ ........ ........ ........ ........ 11%  506K 10m23s
 21504K ........ ........ ........ ........ ........ ........ 13%  320K 9m55s
 24576K ........ ........ ........ ........ ........ ........ 15%  275K 9m39s
 27648K ........ ........ ........ ........ ........ ........ 17%  418K 9m6s
 30720K ........ ........ ........ ........ ........ ........ 18%  357K 8m44s
 33792K ........ ........ ........ ........ ........ ........ 20%  498K 8m14s
 36864K ........ ........ ........ ........ ........ ........ 22%  120K 8m55s
 39936K ........ ........ ........ ........ ........ ........ 23%  186K 8m58s
 43008K ........ ........ ........ ........ ........ ........ 25%  360K 8m36s
 46080K ........ ........ ........ ........ ........ ........ 27%  225K 8m29s
 49152K ........ ........ ........ ........ ........ ........ 29%  230K 8m20s
 52224K ........ ........ ........ ........ ........ ........ 30%  274K 8m6s
 55296K ........ ........ ........ ........ ........ ........ 32%  153K 8m10s
 58368K ........ ........ ........ ........ ........ ........ 34%  180K 8m7s
 61440K ........ ........ ........ ........ ........ ........ 35%  232K 7m55s
 64512K ........ ........ ........ ........ ........ ........ 37%  372K 7m35s
 67584K ........ ........ ........ ........ ........ ........ 39%  295K 7m19s
 70656K ........ ........ ........ ........ ........ ........ 41%  397K 7m0s
 73728K ........ ........ ........ ........ ........ ........ 42%  421K 6m41s
 76800K ........ ........ ........ ........ ........ ........ 44%  248K 6m30s
 79872K ........ ........ ........ ........ ........ ........ 46%  339K 6m14s
 82944K ........ ........ ........ ........ ........ ........ 47%  276K 6m1s
 86016K ........ ........ ........ ........ ........ ........ 49%  383K 5m46s
 89088K ........ ........ ........ ........ ........ ........ 51%  410K 5m30s
 92160K ........ ........ ........ ........ ........ ........ 53%  260K 5m18s
 95232K ........ ........ ........ ........ ........ ........ 54%  168K 5m12s
 98304K ........ ........ ........ ........ ........ ........ 56%  354K 4m58s
101376K ........ ........ ........ ........ ........ ........ 58%  364K 4m44s
104448K ........ ........ ........ ........ ........ ........ 59%  278K 4m32s
107520K ........ ........ ........ ........ ........ ........ 61%  198K 4m22s
110592K ........ ........ ........ ........ ........ ........ 63%  255K 4m11s
113664K ........ ........ ........ ........ ........ ........ 65%  408K 3m57s
116736K ........ ........ ........ ........ ........ ........ 66%  529K 3m42s
119808K ........ ........ ........ ........ ........ ........ 68%  605K 3m28s
122880K ........ ........ ........ ........ ........ ........ 70%  295K 3m16s
125952K ........ ........ ........ ........ ........ ........ 71%  314K 3m4s
129024K ........ ........ ........ ........ ........ ........ 73%  281K 2m53s
132096K ........ ........ ........ ........ ........ ........ 75%  524K 2m40s
135168K ........ ........ ........ ........ ........ ........ 77%  416K 2m28s
138240K ........ ........ ........ ........ ........ ........ 78%  215K 2m17s
141312K ........ ........ ........ ........ ........ ........ 80%  238K 2m7s
144384K ........ ........ ........ ........ ........ ........ 82%  236K 1m56s
147456K ........ ........ ........ ........ ........ ........ 83%  260K 1m45s
150528K ........ ........ ........ ........ ........ ........ 85%  264K 94s
153600K ........ ........ ........ ........ ........ ........ 87%  339K 82s
156672K ........ ........ ........ ........ ........ ........ 89%  336K 71s
159744K ........ ........ ........ ........ ........ ........ 90%  344K 59s
162816K ........ ........ ........ ........ ........ ........ 92%  334K 48s
165888K ........ ........ ........ ........ ........ ........ 94%  366K 37s
168960K ........ ........ ........ ........ ........ ........ 95%  290K 26s
172032K ........ ........ ........ ........ ........ ........ 97%  614K 15s
175104K ........ ........ ........ ........ ........ ........ 99%  217K 4s
178176K ........ ........                                    100%  430K=10m38s

2016-12-20 13:56:59 (281 KB/s) - ‘jdk-8u111-linux-i586.tar.gz’ saved [183537560/183537560]

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/i386/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.
Sedang menata gsfonts-x11 (0.24) ...
Sedang menata oracle-java8-set-default (8u111+8u111arm-1~webupd8~0) ...
server@server-VirtualBox:~$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)
server@server-VirtualBox:~$


Terima kasih Semoga bermanfaat

Terima Kasih atas kunjungan di blog ini.


Wassalamu'alaikum Warahmatullaahi Wabarakaatuh.



Jakarta Selatan, 19 Desember 2016

#java #ubuntu #opensource #linux  #2016

 

Postingan populer dari blog ini

HATI HATI DAPAT INBOX WHATSHAP KERJA PARUH WAKTU

  https://t.me/bliblicenter Scam Bot penipu @C_Caroline1 Website Penipu https://bliwallet.top/#/user https://bliwallet.vip/#/user https://bliwallet.cc/#/user https://prgcompany.com/

Kebutuhan Perangkat VoIP untuk Optimalisasi Komunikasi Bisnis

 Panduan Lengkap Kebutuhan Perangkat VoIP Voice over Internet Protocol (VoIP ) adalah teknologi komunikasi modern yang mengubah cara kita berinteraksi dengan orang lain. Dalam dunia bisnis, perangkat VoIP telah menjadi solusi yang lebih terjangkau dan efektif dalam berkomunikasi dengan pelanggan, mitra bisnis, dan karyawan di seluruh dunia. Namun, dengan beragam pilihan perangkat VoIP yang tersedia di pasar, memilih perangkat yang tepat bisa menjadi tugas yang menantang. Dalam blog ini, kami akan membahas tentang kebutuhan perangkat VoIP dan faktor-faktor yang harus dipertimbangkan sebelum membeli perangkat VoIP . Kami akan membahas berbagai jenis perangkat VoIP yang tersedia, fitur-fitur penting yang harus dipertimbangkan, dan cara mengoptimalkan penggunaan perangkat VoIP Anda. Dengan memperhatikan hal-hal tersebut, Anda dapat memilih perangkat VoIP yang tepat dan memaksimalkan pengalaman komunikasi Anda. Bagi banyak orang, perangkat telepon konvensional sudah menjadi hal ...

Pengertian Master/Slave Architecture Di Hadoop

  Assalamu Alaikum waramatullah wabarokatuh; Hai teman-teman, selamat datang kembali di modul ketiga dari data science and technology series, yaitu modul teknologi dan manajemen big data. Di bagian sebelumnya, kita telah belajar tentang Cluster dan nodes. Di bagian ini kita akan melanjutkan mengenai HDFS dan MapReduce. Sudah siap? Mari kita mulai. Seperti yang sudah saya ceritakan sebelumnya, dua komponen utama dari Hadoop adalah Hadoop distributed file system atau HDFS dan MapReduce. HDFS ini seperti sejarahnya terinspirasi dari GFS atau Google file system dan tujuan dari HDFS adalah untuk mengurusin storage atau penyimpanan data, data ini bisa berupa macam-macam files.  Bagaimana dengan MapReduce? MapReduce ini terinspirasi dari MapReduce algorithm yang dibuat oleh Google. Tujuannya adalah untuk mengurus data processing-nya. Jadi HDFS untuk storage-nya, MapReduce untuk processing. Bagaimana cara kerja Hadoop? Seperti video yang sudah ditunjukan dibagian sebelumnya, kita meng...