• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install JAVA 8 on Ubuntu 18.04/16.04, Linux Mint 19/18

Written by Rahul, Updated on February 6, 2019
JAVA install java on ubuntu, java, jdk, jre, linuxmint, Oracle, ppa, Ubuntu

There are two standard types of installation available are JDK and JRE. JDK (Java Development Kit) provides the ability to develop a new Java application, which includes Java compiler. JRE (Java Runtime Environment) provides the runtime environment for any Java application with applets. The Java developers required to install JDK and JRE both on their system to create new Java Applications.

  • Read this => Install Oracle Java 11 on Ubuntu 16.04 LTS (Xenial)
  • Read this => Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic)

Use this tutorial to Install Oracle Java 8 on Ubuntu 18.04 LTS, 16.04 LTS, 14.04 LTS and LinuxMint 19, 18 using PPA. Follow the below steps to Install Oracle Java 8 on Ubuntu command line.

Step 1 – Install Oracle Java 8 on Ubuntu

You need to enable additional repository to your system to install Java 8 on Ubuntu VPS. After that install Oracle Java 8 on an Ubuntu system using apt-get. This repository contains a package named oracle-java8-installer, Which is not an actual Java package. Instead of that, this package contains a script to install Java on Ubuntu.

Run below commands to install Java 8 on Ubuntu and LinuxMint.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Step 2 – Verify Java Inatallation

The apt repository also provides package oracle-java8-set-default to set Java 8 as your default Java version. This package will be installed along with Java installation. To make sure run below command.

sudo apt-get install oracle-java8-set-default

After successfully installing Oracle Java 8 using the above steps, Let’s verify the installed version using the following command.

java -version

java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Step 3 – Setup JAVA_HOME and JRE_HOME Variable

After installing Java on Linux system, You must have to set JAVA_HOME and JRE_HOME environment variables. Which is used by many Java applications to find Java libraries during runtime. You can set these variables in /etc/environment file using the following command.

cat >> /etc/environment <<EOL
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL
  • https://www.youtube.com/watch?v=JQxIFr4zRRs

All done, you have successfully installed Java 8 on a Linux system. You may also need to install Tomcat server to run your Java web application. Use our another tutorial to Install Tomcat 7 or Install Tomcat 8 or Install Tomcat 9 on Ubuntu, Debian, and LinuxMint systems.

Share it!
Share on Facebook
Share on Twitter
Share on Google+
Share on Reddit
Share on Tumblr
Rahul
Rahul
Connect on Facebook Connect on Twitter Connect on Google+

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Related Posts

  • How To Install Oracle VirtualBox 6.0 on Fedora 29/28/27

    January 27, 2019
  • How To Install Specific Package Version on Ubuntu & Debian

    January 1, 2019
  • Download Ubuntu 18.04 LTS – DVD ISO Images

    December 22, 2018
  • How to Install Package Updates on Ubuntu via Command-Line

    December 5, 2018
  • How to Setup Squid Proxy Server on Ubuntu 18.04 & 16.04

    November 20, 2018

154 Comments

  1. Alexandre Pedro Reply to Alexandre
    February 17, 2019 at 6:58 pm

    Linux Mint 19.1, couldn’t do the last step as the guide says. Ended up doing:
    sudo nano /etc/environment

    Paste in:
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    JRE_HOME=/usr/lib/jvm/java-8-oracle/jre

    Save and exit.

    Thank you for the guide!

  2. Ram Reply to Ram
    January 19, 2019 at 12:23 pm

    This is simple and extremely easy explanation

  3. Veda Reply to Veda
    July 8, 2018 at 5:26 pm

    But live-streaming of the game can affect their job and makes these enjoy theirs favored game on laptop or pc.

  4. Ramonita Reply to Ramonita
    May 31, 2018 at 4:10 pm

    If they bests the seller he gets twice the total amount
    of money inside the payout than he’d have if he had gained without doubling.

  5. scott Reply to scott
    March 24, 2018 at 11:56 am

    Location: http://download.oracle.com/otn-pub/?AuthParam=1521892631_53f4fd9f2a836d690ba6d31c8b160b91 [following]
    –2018-03-24 11:55:11– http://download.oracle.com/otn-pub/?AuthParam=1521892631_53f4fd9f2a836d690ba6d31c8b160b91
    Connecting to download.oracle.com (download.oracle.com)|2.21.188.165|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2018-03-24 11:55:12 ERROR 404: Not Found.

    • Rahul Rahul K. Reply to Rahul
      March 25, 2018 at 2:28 am

      Hi Scott,

      I have checked commands and this is working for me. Which operating system version are you using?

  6. vanderlei Reply to vanderlei
    March 4, 2018 at 10:42 pm

    W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/vivid-backports/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]

  7. vanderlei Reply to vanderlei
    March 4, 2018 at 10:39 pm

    sudo apt-get install oracle-java8-installer
    sudo: não foi possível resolver máquina leni
    Lendo listas de pacotes… Pronto
    Construindo árvore de dependências
    Lendo informação de estado… Pronto
    Alguns pacotes não puderam ser instalados. Isto pode significar que
    você solicitou uma situação impossível ou, se você está usando a
    distribuição instável, que alguns pacotes requeridos não foram
    criados ainda ou foram retirados da “Incoming”.
    A informação a seguir pode ajudar a resolver a situação:

    Os pacotes a seguir têm dependências desencontradas:
    oracle-java8-installer : Depende: java-common (>= 0.24) mas não é instalável
    Recomenda: gsfonts-x11 mas não é instalável
    Recomenda: oracle-java8-set-default mas não será instalado
    E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.

  8. Ankit Tiwari Reply to Ankit
    January 22, 2018 at 8:36 am

    Hello

    Connecting to download.oracle.com (download.oracle.com)|104.122.105.69|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2018-01-22 13:59:51 ERROR 404: Not Found.

    download failed
    Oracle JDK 8 is NOT installed.
    dpkg: error processing package oracle-java8-installer (–configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    oracle-java8-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I am getting this error while running install command on terminal on linux mint 17.2.

    • Rahul Rahul K. Reply to Rahul
      January 22, 2018 at 10:23 am

      Hi Ankit, The webupd8 team has not updated the package yet to PPA. For the time, You can download packages to install Java 8.

      https://drive.google.com/file/d/1l8NTWhZrwYjvjRMXvAgTNXbExJ08eIjU/view

  9. Bill Schwob Reply to Bill
    January 20, 2018 at 6:41 pm

    when i do this all i get is

    download failed
    Oracle JDK 8 is NOT installed.
    dpkg: error processing package oracle-java8-installer (–configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    oracle-java8-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    • Rahul Rahul K. Reply to Rahul
      January 22, 2018 at 10:23 am

      Hi Bill, The webupd8 team has not updated the package yet to PPA. For the time, You can download packages to install Java 8.

      https://drive.google.com/file/d/1l8NTWhZrwYjvjRMXvAgTNXbExJ08eIjU/view

  10. Nathan Reply to Nathan
    January 18, 2018 at 12:17 am

    Great information. Appreciate the time you took to share this feedback for us computer nerds. Love your blog too. Java is still one of the best options out there.

  11. Jari Reply to Jari
    September 19, 2017 at 4:47 pm

    step 1 Can do add-apt-repository ppa:webupd8team/java && apt-get update && apt-get install oracle-java8-installer allso little bit easy 🙂

  12. BK Reply to BK
    August 12, 2017 at 11:25 pm

    hi,
    there is an error with python-samba while installing oracle-java8-installer.
    [/var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.9_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)]
    how can i solve this problem?

  13. tullio Reply to tullio
    July 26, 2017 at 7:04 pm

    i’m not being able to edit the etc/environment file!!!
    please help?!

    • Icthyo Reply to Icthyo
      August 3, 2017 at 2:23 am

      Hello:

      You you either open ‘Files’ or ‘nautilus’ with root privileges, you will be able to open the etc/environment file, edit it and save afterward.

    • Armando Reply to Armando
      September 6, 2017 at 6:56 pm

      the easiest way is to do it through the terminal using sudo for root access (which enables you to edit sensitive files)
      $ sudo gedit /etc/environment
      add the lines
      then save.
      done.

  14. Tim Cooper Reply to Tim
    December 28, 2016 at 8:20 pm

    This seems to install JRE _not_ JDK as the title of the article states.
    Several people have pointed this out in the comments yet these queries remain unanswered.
    Perhaps the title of the article is incorrect…

    • Rahul Rahul K. Reply to Rahul
      December 29, 2016 at 5:28 am

      Hi Tim,

      This installs JDK and JRE both. After installation you can check install java compiler.

      $ javac -version

      javac 1.8.0_111

  15. Jeff Reply to Jeff
    October 28, 2016 at 4:35 pm

    Thank you! This works Great! I was also able to integrate Apache Solr on my website

    I am thinking about keeping this up and going on my vps server

  16. meya Reply to meya
    August 12, 2016 at 9:08 pm

    Hello, i f i understand this will install JDK too. But i cant find my JDK directory.
    any help or explanation ? thank you in advance

    • ilium007 Reply to ilium007
      September 1, 2016 at 1:41 am

      I didn’t get a JDK downloaded either. Does anyone have a suggestion ?

  17. JeanAlesi Reply to JeanAlesi
    August 11, 2016 at 9:27 pm

    I don’t like it.. It’s too easy.
    Do you have a harder example?

  18. vikas avnish Reply to vikas
    August 7, 2016 at 7:18 pm

    This is simple and extremely easy explanation

  19. tiago Reply to tiago
    August 7, 2016 at 2:53 am

    I want know becouse we make donwload of archive on site of oracle and that file i dont can install

  20. Nikolaj Reply to Nikolaj
    August 4, 2016 at 11:31 am

    1-up!!! Thanks! you saved my day 🙂

  21. Samuele Soraggi Reply to Samuele
    July 29, 2016 at 10:15 pm

    Thanks for your suggestions, this solution is fast and understandable. i owe you one 😀

  22. Gustavo Chavarro Ortiz Reply to Gustavo
    July 21, 2016 at 3:29 am

    that is the best guide of the INTERNET, thanks man.

  23. Pavel Reply to Pavel
    July 16, 2016 at 4:23 am

    Thank you maaaan!

  24. john Reply to john
    July 14, 2016 at 9:54 pm

    I’ve installed java 1.8 on two devices thanks to this beautiful simple process

  25. Barry Reply to Barry
    July 10, 2016 at 4:22 pm

    🙂 you da man thanks!

  26. Chukwuemeka Reply to Chukwuemeka
    July 9, 2016 at 7:00 pm

    Great guide.
    Thanks!

  27. Manjunath Reply to Manjunath
    July 5, 2016 at 11:26 am

    If you get “Cannot add PPA ‘ppa:cooperjona/lightread’ . Please check that the PPA name or format is correct.” error

    sudo -E add-apt-repository ppa:ppaname/ppa
    instead of

    sudo add-apt-repository ppa:ppaname/ppa

  28. xiaoguang Reply to xiaoguang
    July 1, 2016 at 12:57 pm

    thanks

  29. Cristian Leal Reply to Cristian
    June 26, 2016 at 4:43 pm

    Genio, muchas gracias. Saludos desde Argentina!

  30. il0v3tweakS Reply to il0v3tweakS
    June 23, 2016 at 7:00 pm

    This saved my day! Thank you!

  31. Fredah Reply to Fredah
    June 20, 2016 at 3:13 pm

    This saved me a whole day of manually doing it myself. Thanks so much!!

  32. Melinda Reply to Melinda
    May 25, 2016 at 8:48 pm

    Great step-by-step process document!! Thanks.

  33. brucewayne Reply to brucewayne
    May 7, 2016 at 2:57 pm

    thanks!

  34. Luis Felipe Reply to Luis
    May 3, 2016 at 5:21 pm

    Thanks a lot! You all helped me a lot!

  35. deva Reply to deva
    May 3, 2016 at 10:30 am

    nice documentation

  36. sue Reply to sue
    April 30, 2016 at 10:43 pm

    i already had java7. after installing java8, java- -version still gives jdk7… whats the solution?

    • vamsi Reply to vamsi
      January 30, 2019 at 10:49 am

      have u got any solution? for this ….

  37. Z06R8CR Reply to Z06R8CR
    April 29, 2016 at 9:42 pm

    Thanks for the great instructions!

  38. Jonatas Reply to Jonatas
    April 29, 2016 at 3:18 pm

    Thank you !

  39. Benedito Sene Reply to Benedito
    April 28, 2016 at 11:07 pm

    Thank you very much !!

  40. prathinma Reply to prathinma
    April 19, 2016 at 5:37 am

    Thank You so much

  41. Max Reply to Max
    April 17, 2016 at 8:19 pm

    Thank bro none of the site help out on google but u r site instruction was extremely perfect….

  42. Mrunal Reply to Mrunal
    April 13, 2016 at 10:34 am

    This article was extremely helpful. Please keep posting Linux and Java related articles.

  43. Gustavo Zaera Holo Reply to Gustavo
    March 12, 2016 at 8:18 pm

    Thanks for a simple and great HOWTO! 🙂

  44. srinidhi Reply to srinidhi
    February 25, 2016 at 7:28 am

    hi guys i am getting this error)
    (http://download.oracle.com/otn-pub/java/jdk/8u72-b15/jdk-8u72-linux-i586.tar.gz
    Connecting to download.oracle.com (download.oracle.com)|180.149.61.152|:80… connected.
    HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers.
    Retrying.)
    upto try:5 after that download fail NOT inst error please help

    • tohuuu Reply to tohuuu
      March 30, 2016 at 9:43 am

      Encountered the same issue – i had to modify the timeout settings in /var/lib/dpkg/info/oracle-java8-installer.postinst to make it run. Sadly, the installer script doesn’t use the system-wide /etc/wgetrc but creates its own wgetrc each time it runs. So, you’ll have to search for the line “echo “timeout = 15″ >> wgetrc” in the postinst file i’ve mentioned above. Now, just set a longer timeout or remove the line completely.

  45. shravan Reply to shravan
    February 22, 2016 at 3:37 am

    Thank you very much

  46. ubBa Reply to ubBa
    February 16, 2016 at 6:19 pm

    It is not working for me.

    • Rahul Rahul Reply to Rahul
      February 17, 2016 at 4:54 am

      Hi,

      What issue are you facing ?

  47. Eduardo Reply to Eduardo
    February 14, 2016 at 1:37 pm

    Thanks man. It works perfectly.

  48. Luis Reply to Luis
    February 4, 2016 at 4:33 pm

    Muy útil, muchas gracias.

  49. Jaswant Reply to Jaswant
    January 26, 2016 at 2:54 pm

    Very useful tutorial…

  50. Aradhya Sen Reply to Aradhya
    January 26, 2016 at 2:35 pm

    Thank you

  51. Manurmu Reply to Manurmu
    January 26, 2016 at 5:07 am

    hey!!! so usefull!!!! thank a lot!!!!! 😀

  52. Michael Reply to Michael
    January 26, 2016 at 4:34 am

    Thanks dude searched everywhere for guides but yours is the best and easiest.

  53. PRESIDENT Reply to PRESIDENT
    January 24, 2016 at 8:55 am

    Thank you 😉

  54. Ananda Bayu Reply to Ananda
    January 7, 2016 at 10:24 am

    Hey, i’am new with linux and its very usefull thanks for the tutorial.

  55. Tanja Reply to Tanja
    January 5, 2016 at 5:43 pm

    Thank you very much for this. It helped a lot!

  56. Ian Reply to Ian
    December 30, 2015 at 7:21 pm

    I’m getting an error when running the command:

    sudo add-apt-repository ppa:webupd8team/java

    The error is:
    Cannot add PPA: ‘ppa:~webupd8team/ubuntu/java’.
    ERROR: ‘~webupd8team’ user or team does not exist.

    • Rahul Rahul Reply to Rahul
      December 31, 2015 at 9:55 am

      Hi Ian,

      Its still working for me. Please confirm what OS version are you using ?

  57. lanowar Reply to lanowar
    December 26, 2015 at 5:55 pm

    Thanks but it’s not working for me, this is the message i got:

    ~ $ sudo apt-get update
    E: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list
    E: The list of sources could not be read.

  58. nicolas Reply to nicolas
    December 14, 2015 at 9:04 pm

    Very nice, simple and useful

  59. Allen Burns Reply to Allen
    December 9, 2015 at 7:52 pm

    Sure wish this wasn’t the first item coming up in a google search of “installing java 8 jdk on ubuntu” because this isn’t the jdk!

    • ZAID BOUDAMOUZ Reply to ZAID
      December 18, 2015 at 7:08 pm

      I agree with you comment !!! It’s not a JDK and only a Runtime then, no option to compile (no javac compiler)

  60. IZVITE Reply to IZVITE
    December 7, 2015 at 10:19 am

    Thanks a lot!

  61. Zacknov Reply to Zacknov
    December 5, 2015 at 2:24 pm

    Nice article. So the reference in my blog yes

  62. Bharath Reply to Bharath
    November 25, 2015 at 10:19 am

    Thanks a lot

  63. java Reply to java
    November 21, 2015 at 12:24 pm

    thanks

  64. Pracaonline Reply to Pracaonline
    November 14, 2015 at 12:09 am

    Thanks for that short advice, for now everything is working 😉 and let it stay in this way 😉

  65. qwerty Reply to qwerty
    October 29, 2015 at 9:45 am

    Thank you!

  66. kevin Reply to kevin
    October 28, 2015 at 2:27 am

    thank, ..thank you very much, very nice work

  67. Miguel Reply to Miguel
    October 25, 2015 at 12:09 am

    Very Nice, thanks!

  68. yogesh Reply to yogesh
    October 22, 2015 at 5:04 pm

    you follow this post and enjoy java8. very nice work done by techadmin.

  69. Gabriel Reply to Gabriel
    October 19, 2015 at 5:40 am

    Thanks dude ° this information was util.

  70. Gaspar Reply to Gaspar
    October 13, 2015 at 12:14 pm

    Good job!

  71. Zvonimir Reply to Zvonimir
    October 12, 2015 at 3:13 pm

    Does not work trows class not found exception

  72. Yogendra Reply to Yogendra
    October 6, 2015 at 2:14 am

    everything went in a breeze – cool
    thanks
    looking for manual procedure to do stepbystep as well

  73. Mohammad Dashti Reply to Mohammad
    September 30, 2015 at 4:17 pm

    Thanks a lot.
    Very helpful.

  74. Steve Reply to Steve
    September 30, 2015 at 1:59 pm

    Thanks man!! Worked like a champ!

  75. Elvir Reply to Elvir
    September 16, 2015 at 2:10 am

    Muito obrigado amigo.

  76. bdnahomi Reply to bdnahomi
    August 31, 2015 at 1:06 am

    Thank you very useful

  77. Sergio Reply to Sergio
    August 25, 2015 at 12:22 am

    Thanks

  78. Gurbachan Singh Reply to Gurbachan
    August 21, 2015 at 1:37 pm

    While installing throw sha256sum mismatch jdk-8u60-linux-x64.tar.gz

    please help me to out this problem

  79. Vinit Reply to Vinit
    August 20, 2015 at 1:27 pm

    Thank you so much……Really really helped alot….. 🙂

  80. David G. Pickett Reply to David
    August 18, 2015 at 9:49 pm

    Is there a way to get it to move up from 51 to 60? The website says I am behind!

  81. nelson molina Reply to nelson
    August 18, 2015 at 12:46 am

    Thanks very thamkful!!

  82. Yura Reply to Yura
    August 7, 2015 at 9:12 pm

    Really helpful information.

  83. Bala Reply to Bala
    August 5, 2015 at 2:07 pm

    Good One!

  84. Leenie Reply to Leenie
    August 2, 2015 at 2:49 pm

    Webupd8 Java PPA DOWN!!!!! When will it be updated?

    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net trusty Release: The following signatures were invalid: BADSIG C2518248EEA14886 Launchpad VLC

    W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/trusty/Release

    W: Some index files failed to download. They have been ignored, or old ones used instead.

  85. sumit Reply to sumit
    July 22, 2015 at 2:59 pm

    thankyou somuch

  86. BPatient Reply to BPatient
    June 24, 2015 at 10:36 am

    Thank you sharing a such helpful article

  87. Aaron Reply to Aaron
    June 22, 2015 at 7:44 pm

    idk how to install this

  88. Harshita Reply to Harshita
    June 12, 2015 at 6:02 am

    Hi Rahul,
    I am new to Ubuntu. I tried the setps to install jdk 1.8.
    While setting environment, I found the error
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/rt.pack
    jsse.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/jsse.pack
    charsets.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/charsets.pack
    localedata.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/ext/localedata.pack
    jfxrt.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/ext/jfxrt.pack
    plugin.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/plugin.pack
    javaws.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/javaws.pack
    deploy.jar…
    Error: Could not open input file: /usr/java/jre1.8.0_45/lib/deploy.pack
    /var/lib/dpkg/info/jre1.8.0-45.postinst: line 641: /usr/sbin/alternatives: No such file or directory
    dpkg: error processing package jre1.8.0-45 (–configure):
    subprocess installed post-installation script returned error exit status 127
    Setting up oracle-java8-set-default (8u45+8u33arm-1~webupd8~1) …
    Errors were encountered while processing:
    jre1.8.0-45
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    What should I do to set environment ?

    • Zoli1972 Reply to Zoli1972
      July 21, 2015 at 5:25 pm

      Same here, HARSHITA.

      Worse: I can’t install any package since I’ve tried to install this using this tutorial. Can someone help please?

      Zoli

      • Zoli1972 Reply to Zoli1972
        July 21, 2015 at 5:44 pm

        EDIT: Maybe a helpful hint, I did a…

        java -version

        …this shows me…

        java version “1.9.0-ea”
        Java(TM) SE Runtime Environment (build 1.9.0-ea-b70)
        Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b70, mixed mode)

        So the error messages seem to come from an older installation, that I have to remove. But how?

        Zoli

  89. Sohan Reply to Sohan
    June 8, 2015 at 11:43 am

    Very helpful article.

  90. Sergio Reply to Sergio
    June 1, 2015 at 6:01 pm

    Very helpful,

    Thanks !!!

  91. Luigi Reply to Luigi
    May 27, 2015 at 4:29 pm

    Very helpful article. Thanks.

  92. Amit Reply to Amit
    May 26, 2015 at 11:09 pm

    Hi,

    I would like to thank you for helping the non techs like myself first. Could you help me with a problem I get? I am using LM 17.1 and trying to do the installation I get the Binary Code License Agreement display at mt terminal window. There is no way to click ok or accept those terms, failing which the installation aborts. Can you tell me a way around, or what am I doing wrong?

    Thanks
    Amit

    • pritis Reply to pritis
      October 8, 2015 at 9:59 am

      use arrow keys to move, enter to accept

  93. Os Reply to Os
    May 22, 2015 at 9:35 pm

    Thank you!! It works!.

  94. MARCELO Reply to MARCELO
    May 5, 2015 at 3:21 pm

    Thanks for the info! very helpful…

  95. reshma Reply to reshma
    May 4, 2015 at 10:46 am

    Thank you so much, this helped a lot !!!!

  96. Javild Reply to Javild
    April 24, 2015 at 6:35 pm

    Thanks from a spanish user!

  97. Rana Reply to Rana
    April 13, 2015 at 5:48 am

    Thanks! It helped a lot!

  98. habdul Reply to habdul
    April 10, 2015 at 6:46 pm

    if i search, do i have java?, and enter site is says this plugin is not accepted,what i have to do?

    • Rahul Rahul Reply to Rahul
      April 11, 2015 at 3:20 am

      Hi Habdul,

      Do you mean java is working with browser ? If yes which browser are you using ?

  99. NoSyu Reply to NoSyu
    January 6, 2015 at 7:02 am

    Thank you for kind article to install java 1.8 in Ubuntu 14.04.
    It works well. 🙂

  100. Abdul Hannan Reply to Abdul
    January 4, 2015 at 4:51 pm

    Will it work for Ubuntu 14.10?

  101. Jim Somerville Reply to Jim
    December 28, 2014 at 12:51 am

    This is very handy, thank you. And thank you to the Webupd8 Team!

  102. carlos Reply to carlos
    December 22, 2014 at 2:56 pm

    thank you, greetings from México.

  103. Satya Prakash Joshi Reply to Satya
    December 17, 2014 at 2:04 pm

    You made my day,, thanks allot

  104. Zoltan Reply to Zoltan
    December 13, 2014 at 6:21 pm

    Hi,
    I could install java 8 as you wrote, but I still can not set java 8 as a default JRE. And when I would like to add it to the installed JREs I cant find it. Where should it be?
    Thank you!

  105. tendertree Reply to tendertree
    December 3, 2014 at 11:53 am

    thanks for post !! it was very helpful for me !

  106. Avinash Reply to Avinash
    November 30, 2014 at 10:55 am

    Thanks for the guide.. worked fine for me

  107. Nerunja Reply to Nerunja
    November 29, 2014 at 3:18 am

    Thank you very much. This is really helpful.

  108. Kevin Reply to Kevin
    November 26, 2014 at 12:11 pm

    Awesome! very helpful!

  109. Tiru Reply to Tiru
    November 23, 2014 at 6:06 pm

    Very useful. Thank you.

  110. Davi Lima Reply to Davi
    November 17, 2014 at 7:57 pm

    Very Easy for install Java in Ubuntu 🙂
    Nice Job

  111. Marcio Reply to Marcio
    November 11, 2014 at 3:57 pm

    great! i always wonder why we haven’t something like a repo to install jdk!

    great work

  112. Erwin Reply to Erwin
    November 10, 2014 at 11:58 am

    Thanks a lot. Quick, easy and it installs both JDK and JRE version 8!

  113. Divine Martins Jr. Reply to Divine
    November 1, 2014 at 1:39 pm

    Wonderful and helpful.
    A written tutorial on how to install using the already downloaded tar.gz file will be helpful too. Thanks

  114. Ruben Reply to Ruben
    October 29, 2014 at 8:39 pm

    This installs the JRE not the JDK/SDK. Is not the same ….

  115. Victor Reply to Victor
    October 28, 2014 at 4:17 pm

    Nice tutorial!
    But now, How do you uninstall it?

    • Tiru Reply to Tiru
      November 23, 2014 at 6:14 pm

      Packages can be removed with
      >sudo apt-get –purge remove packageName

      apt-get remove may some times leave behind some files.
      –purge will remove all files.

  116. Telepath Reply to Telepath
    October 24, 2014 at 9:34 pm

    Hi, whish all of costum installs have these very good install help,
    saves lots of time , thx,

  117. PK Reply to PK
    October 21, 2014 at 12:24 am

    Hi,

    I am getting an error stating the following. Please help.

    Cannot add PPA: ‘ppa:webupd8team/java’.
    Please check that the PPA name or format is correct.

    • Telepath Reply to Telepath
      October 24, 2014 at 9:36 pm

      no problem here with sudo, name (and all further instructions are correct)

    • Hi Reply to Hi
      December 12, 2014 at 4:58 pm

      Yeah.. same problem here

  118. Jeroen Reply to Jeroen
    October 6, 2014 at 9:09 pm

    Thanks man, saved me some time 🙂

  119. ceghap Reply to ceghap
    September 26, 2014 at 11:26 am

    thanks! 🙂

  120. BlastedChango Reply to BlastedChango
    September 22, 2014 at 8:19 pm

    Thank you very much, this helped a lot

  121. Alan Reply to Alan
    September 22, 2014 at 2:29 am

    Very good, help so much

  122. bigspawn Reply to bigspawn
    September 20, 2014 at 1:12 pm

    Thank’s for this article!

  123. Elias Reply to Elias
    September 18, 2014 at 6:35 pm

    Thanks! Very helpful.

  124. mike Reply to mike
    September 13, 2014 at 9:42 pm

    you guys rock

  125. Dery Reply to Dery
    September 12, 2014 at 10:07 pm

    Thank you so much!

  126. Victor Reply to Victor
    September 8, 2014 at 6:51 pm

    Thank you!

  127. eyescream Reply to eyescream
    August 31, 2014 at 10:07 pm

    thank you very very much

  128. juju Reply to juju
    August 23, 2014 at 7:46 pm

    Missing the – in java -version

    • juju Reply to juju
      August 23, 2014 at 7:47 pm

      Woops! Retract that!

  129. magma Reply to magma
    August 22, 2014 at 6:40 pm

    many thanks, this helped a lot!

  130. pedro Reply to pedro
    July 25, 2014 at 2:51 am

    Thanks!
    I can´t access my bank with open-jdk, only with oracle-java

  131. Madhu Reply to Madhu
    July 22, 2014 at 7:45 am

    Useful Information, Thanks

  132. Nestor Octavio Reply to Nestor
    July 9, 2014 at 4:11 pm

    Nice tutorial
    Greetings from Mexico Wey!! :3

  133. arxos Reply to arxos
    June 24, 2014 at 6:32 am

    Thanks!!!! God Thanks!!!!

  134. wei-ting Reply to wei-ting
    June 1, 2014 at 8:58 pm

    Hi, these information is very useful. Thank you very much.

Leave a Reply

Cancel reply

Popular Posts

  • How To Install Zabbix Agent on Debian 9/8
  • How to Install and Configure Squid Proxy on Debian 9
  • How To Install Wine 3 on Debian 9 (Stretch)
  • How to Remove “public/index.php” from URL in Laravel
  • How to Install Swift on Ubuntu 18.04 LTS
All rights reserved. © 2013-2018 TecAdmin.net. This site uses cookies. By using this website you agree our term and services