Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Programming»JAVA»How to Install JAVA 8 on Ubuntu 18.04/16.04, Linux Mint 19/18

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

    By RahulMay 28, 20202 Mins Read

    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.

    Advertisement
    IMPORTANT: The Oracle Java 8 is no longer available to download publicaly. You can use below link to install Java 11. You may also continue to this tutorial to install OpenJDK 8.

    • 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 OpenJDK Java 8 on Ubuntu 19.10, 18.04 LTS, 16.04 LTS, LinuxMint 19, 18 using PPA. Follow the below steps to install Java 8 on Ubuntu via the command line.

    Step 1 – Install Java 8 on Ubuntu

    The OpenJDK 8 is available under default Apt repositories. You can simply install Java 8 on an Ubuntu system using the following commands.

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

    sudo apt update
    sudo apt install openjdk-8-jdk openjdk-8-jre
    

    Step 2 – Verify Java Installation

    You have successfully installed Java 8 on your system. Let’s verify the installed and current active version using the following command.

    java -version
    
    openjdk version "1.8.0_252"
    OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
    OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
    

    Step 3 – Setup JAVA_HOME and JRE_HOME Variable

    As you have installed Java on your Linux system, You must have to set JAVA_HOME and JRE_HOME environment variables, which is used by many of the 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-openjdk-amd64
    JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
    EOL
    

    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.

    install java on ubuntu Java jdk jre Linux Mint ppa Ubuntu
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Set JAVA_HOME environment variable on macOS

    How to Set JAVA_HOME environment variable on macOS

    What is the Access Modifiers in Java

    What are the Access Modifiers in Java

    Setup Selenium with Python and Chrome on Ubuntu & Debian

    Setup Selenium with Python and Chrome Driver on Ubuntu & Debian

    View 189 Comments

    189 Comments

    1. roshini on May 25, 2022 6:06 am

      cat >> /etc/environment <<EOL
      JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
      EOL

      USING THESE STEPS PERMISSION DENIED

      Reply
    2. ginnnn on October 6, 2021 7:24 am

      thanks

      Reply
    3. Costin C-tin on July 21, 2020 6:02 am

      As Benjamin Hecht (and others) pointed out “Permission denied” is raised when trying “cat >> /etc/environment <<EOL ” . Even with “sudo cat >> ” the same applies. To be able to write to /etc/environment this needs to be used:
      cat | sudo tee -a /etc/environment <<EOL
      JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
      EOL

      Reply
      • Kamsala Rajesh on September 27, 2020 5:19 pm

        How to upgrade or how to remove java-8 version and install java7 how to set environment variable, can anyone help me with my question?

        Reply
    4. Benjamin Hecht on July 4, 2020 3:21 am

      Hi, I’m getting ‘permission denied’ as an error:

      (base) [email protected]:~$ java -version
      openjdk version “1.8.0_252”
      OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
      OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
      (base) [email protected]:~$ cat >> /etc/environment < JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      > JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
      > EOL
      bash: /etc/environment: Permission denied
      (base) [email protected]:~$ cat >> /etc/environment < JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      > JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
      > EOL
      bash: /etc/environment: Permission denied

      Any help would be greatly appreciated! Thanks! Trying to use java for loading a jnlp file so using Java 8 on 18.04.4 appears to be the only way.

      Reply
      • Mattis on July 20, 2020 8:58 am

        Try: sudo nano /etc/environment (or use any other text editor)
        Then add the lines:
        JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
        JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre

        Reply
      • sachin Kale on January 22, 2021 7:56 am

        add permission with below commonad
        sudo chmod -R ugo+rw /etc/environment

        Reply
    5. Levent GUREN on May 27, 2020 10:37 pm

      There is a space after equal sign at this line:
      JAVA_HOME= /usr/lib/jvm/java-8-openjdk-amd64
      This must not be there. 🙂

      Reply
      • Rahul on May 28, 2020 4:21 am

        Thanks Levent, Article has been updated.

        Reply
    6. José on May 1, 2020 2:54 pm

      thanks!

      Reply
    7. Nicodemus Ojwee on March 3, 2020 2:50 pm

      Thanks for the quick and clear guide.

      Reply
    8. Marcus Siqueira on February 11, 2020 6:59 pm

      Interesting stuff! Keep the site up you have a lot of good content! You just helped me and I believe you helped a lot more people

      Reply
    9. sabung ayam s128 on February 5, 2020 7:04 pm

      Good write-up. I certainly love this website. Thanks!

      Reply
    10. pharaprince on January 24, 2020 1:42 am

      Thanks it worked for me

      Reply
    11. Hugo on January 4, 2020 12:51 am

      Step 2 still says “Oracle Java 8”

      Reply
      • Rahul on January 4, 2020 4:28 am

        Hi Hugo, Thanks for pointing it. I have updated the tutorial correctly.

        Reply
    12. Łukasz Przesmycki on November 23, 2019 1:00 pm

      This is not an Oracle JDK installation as the title suggest!

      Reply
      • Rahul on November 25, 2019 10:11 am

        I have corrected the title. Earlier this tutorial was for the Oracle Java installation, But as of now, Oracle Java 8 is not available directly, So we change it to OpenJDK.

        Reply
    13. Sen on October 31, 2019 11:49 am

      This works perfectly as of 31-Oct-2019

      Reply
    14. Ashish on October 8, 2019 8:56 am

      Working perfectly

      Reply
    15. Sathishkumar on September 5, 2019 7:07 am

      Hi, I’m using Ubuntu 18.04 and I’m getting below error :

      Package oracle-java8-installer is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package ‘oracle-java8-installer’ has no installation candidate

      Reply
      • Alison on September 23, 2019 9:14 pm

        This article is out of date, and, as of September 2019, no longer works.

        Reply
    16. Shivdas Kanade on August 2, 2019 9:33 am

      very easy steps. Thanks

      Reply
    17. Edwin Smith Velandia Salazar on June 6, 2019 4:05 pm

      work for me,

      sudo apt-get install default-jdk
      sudo apt autoremove
      sudo apt-get install default-jre
      java –version
      sudo apt install openjdk-8-jdk

      sudo update-alternatives –config java
      Existen 2 opciones para la alternativa java (que provee /usr/bin/java).

      Selección Ruta Prioridad Estado
      ————————————————————
      0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 modo automático
      1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 modo manual
      * 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 modo manual

      Pulse para mantener el valor por omisión [*] o pulse un número de selección:

      *** in my case, i used java-8, press 2

      and my app work.

      Reply
      • Jonathan on October 21, 2019 5:11 pm

        worked on LinuxMint. Thanks

        Reply
    18. Jignesh on May 31, 2019 4:39 pm

      It’s not working and it won’t work. You need to update your article. Oracle has made it mandatory to create an account and download the required version. The PPA method is deprecated and it won’t work.

      TIP: Make sure you download the binary version or the Oracle 8 JDK.

      Reply
    19. sirius2834 on May 29, 2019 9:50 am

      Actually it is possible to install Java 8 u 131 to Mint 19+ or Ubuntu 18+.

      Search for these files on the Internet:

      oracle-java8-installer_8u131-1_webupd8_2_all.deb
      oracle-java8-set-default_8u131-1_webupd8_2_all.deb
      oracle-java8-unlimited-jce-policy_8u131-1_webupd8_2_all.deb

      Then:

      sudo oracle-java8-installer_8u131-1_webupd8_2_all.deb
      sudo oracle-java8-set-default_8u131-1_webupd8_2_all.deb
      (and you can install the unlimited one, but not necessary by defalut)

      In contrary to the abandoned PPA, you can install these without problems and the ‘Oracle Java 8 Plugin Control Panel’ will work too.

      If the .jnlp files don’t open in Firefox, then select “open with” and enter “javaws” .

      There is virtually no info of Java 8 for the latest Mint/Ubutu installation over the internet and I had to figure it out too.

      I hope it helps!

      Reply
      • Rahul on May 31, 2019 6:40 am

        Hi,

        Java 8 is no more available to download from Oracle site. But if you have any existing installation on another system, can be used to install to your system.

        Reply
    20. Harshit on May 2, 2019 2:02 pm

      This is not working. It is showing this error E: Package ‘oracle-java8-installer’ has no installation candidate

      Reply
      • Vsevolod on May 7, 2019 7:27 am

        because oracle changed license for it’s jdk. this tutor is useless and, in fact, scam.

        Reply
    21. krishna on April 29, 2019 9:38 am

      Hi
      when i try to intall the java8. By these commands
      sudo add-apt-repository ppa:webupd8team/java
      sudo apt update; sudo apt install oracle-java8-installer
      after the second command i am getting error like this
      “Package oracle-java8-installer is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source”
      what to do ? and i have tried everything to come out of this i can’t able to do this
      plzz help me out.

      Reply
    22. Va Sja on April 28, 2019 4:06 pm

      Unfortunately don’t work anymore 🙁
      >
      >~/Downloads/jdk1.8.0_202$ sudo apt-get install oracle-java8-set-default
      >[sudo] password for i1:
      >Reading package lists… Done
      >Building dependency tree
      >Reading state information… Done
      >E: Unable to locate package oracle-java8-set-default

      Reply
    23. Chuanpeng Hu on April 17, 2019 8:29 pm

      Hi, there,

      Thanks so much for your post. It’s helpful.
      But I failed to install java,

      > sudo apt install oracle-java11-installer

      I got this error message:

      Resolving login.oracle.com (login.oracle.com)… 209.17.4.8
      Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443… connected.
      HTTP request sent, awaiting response… 401 Authorization Required

      Username/Password Authentication Failed.
      download failed
      Oracle JDK 8 is NOT installed.
      dpkg: error processing package oracle-java8-installer (–configure):
      installed oracle-java8-installer package post-installation script subprocess returned error exit status 1
      Processing triggers for shared-mime-info (1.9-2) …
      Setting up oracle-java11-set-default (11.0.2-2~linuxuprising1) …
      Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) …
      Processing triggers for hicolor-icon-theme (0.17-2) …
      Processing triggers for fontconfig (2.12.6-0ubuntu2) …
      Errors were encountered while processing:
      oracle-java8-installer
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      One possibility is that “401 is because 8u211 is the first version that is paid only. The previous 8u201 was the last freely available version.” as suggested by one comment here: https://stackoverflow.com/questions/46815897/jdk-8-is-not-installed-error-404-not-found

      Reply
    24. Neha on March 15, 2019 11:36 am

      I need jdk version to be like this

      Java version “1.8.0_40”
      Java™ SE Runtime Environment (build 1.8.0_40-b25)
      Java HotSpot™ 64-Bit Server VM (build 25.40-b25, mixed mode)

      How do I do it for Ubuntu 18.10

      Reply
    25. Alexandre Pedro on February 17, 2019 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!

      Reply
      • Joshua on February 22, 2019 1:37 pm

        Same here.

        Reply
    26. Ram on January 19, 2019 12:23 pm

      This is simple and extremely easy explanation

      Reply
    27. Veda on July 8, 2018 5:26 pm

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

      Reply
    28. Ramonita on May 31, 2018 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.

      Reply
    29. scott on March 24, 2018 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.

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

        Hi Scott,

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

        Reply
    30. vanderlei on March 4, 2018 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]

      Reply
    31. vanderlei on March 4, 2018 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.

      Reply
    32. Ankit Tiwari on January 22, 2018 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.

      Reply
      • Rahul K. on January 22, 2018 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

        Reply
    33. Bill Schwob on January 20, 2018 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)

      Reply
      • Rahul K. on January 22, 2018 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

        Reply
    34. Nathan on January 18, 2018 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.

      Reply
    35. Jari on September 19, 2017 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 🙂

      Reply
    36. BK on August 12, 2017 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?

      Reply
    37. tullio on July 26, 2017 7:04 pm

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

      Reply
      • Icthyo on August 3, 2017 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.

        Reply
      • Armando on September 6, 2017 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.

        Reply
    38. Tim Cooper on December 28, 2016 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…

      Reply
      • Rahul K. on December 29, 2016 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

        Reply
    39. Jeff on October 28, 2016 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

      Reply
    40. meya on August 12, 2016 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

      Reply
      • ilium007 on September 1, 2016 1:41 am

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

        Reply
    41. JeanAlesi on August 11, 2016 9:27 pm

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

      Reply
    42. vikas avnish on August 7, 2016 7:18 pm

      This is simple and extremely easy explanation

      Reply
    43. tiago on August 7, 2016 2:53 am

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

      Reply
    44. Nikolaj on August 4, 2016 11:31 am

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

      Reply
    45. Samuele Soraggi on July 29, 2016 10:15 pm

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

      Reply
    46. Gustavo Chavarro Ortiz on July 21, 2016 3:29 am

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

      Reply
    47. Pavel on July 16, 2016 4:23 am

      Thank you maaaan!

      Reply
    48. john on July 14, 2016 9:54 pm

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

      Reply
    49. Barry on July 10, 2016 4:22 pm

      🙂 you da man thanks!

      Reply
    50. Chukwuemeka on July 9, 2016 7:00 pm

      Great guide.
      Thanks!

      Reply
    51. Manjunath on July 5, 2016 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

      Reply
    52. xiaoguang on July 1, 2016 12:57 pm

      thanks

      Reply
    53. Cristian Leal on June 26, 2016 4:43 pm

      Genio, muchas gracias. Saludos desde Argentina!

      Reply
    54. il0v3tweakS on June 23, 2016 7:00 pm

      This saved my day! Thank you!

      Reply
    55. Fredah on June 20, 2016 3:13 pm

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

      Reply
    56. Melinda on May 25, 2016 8:48 pm

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

      Reply
    57. brucewayne on May 7, 2016 2:57 pm

      thanks!

      Reply
    58. Luis Felipe on May 3, 2016 5:21 pm

      Thanks a lot! You all helped me a lot!

      Reply
    59. deva on May 3, 2016 10:30 am

      nice documentation

      Reply
    60. sue on April 30, 2016 10:43 pm

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

      Reply
      • vamsi on January 30, 2019 10:49 am

        have u got any solution? for this ….

        Reply
    61. Z06R8CR on April 29, 2016 9:42 pm

      Thanks for the great instructions!

      Reply
    62. Jonatas on April 29, 2016 3:18 pm

      Thank you !

      Reply
    63. Benedito Sene on April 28, 2016 11:07 pm

      Thank you very much !!

      Reply
    64. prathinma on April 19, 2016 5:37 am

      Thank You so much

      Reply
    65. Max on April 17, 2016 8:19 pm

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

      Reply
    66. Mrunal on April 13, 2016 10:34 am

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

      Reply
    67. Gustavo Zaera Holo on March 12, 2016 8:18 pm

      Thanks for a simple and great HOWTO! 🙂

      Reply
    68. srinidhi on February 25, 2016 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

      Reply
      • tohuuu on March 30, 2016 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.

        Reply
    69. shravan on February 22, 2016 3:37 am

      Thank you very much

      Reply
    70. ubBa on February 16, 2016 6:19 pm

      It is not working for me.

      Reply
      • Rahul on February 17, 2016 4:54 am

        Hi,

        What issue are you facing ?

        Reply
    71. Eduardo on February 14, 2016 1:37 pm

      Thanks man. It works perfectly.

      Reply
    72. Luis on February 4, 2016 4:33 pm

      Muy útil, muchas gracias.

      Reply
    73. Jaswant on January 26, 2016 2:54 pm

      Very useful tutorial…

      Reply
    74. Aradhya Sen on January 26, 2016 2:35 pm

      Thank you

      Reply
    75. Manurmu on January 26, 2016 5:07 am

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

      Reply
    76. Michael on January 26, 2016 4:34 am

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

      Reply
    77. PRESIDENT on January 24, 2016 8:55 am

      Thank you 😉

      Reply
    78. Ananda Bayu on January 7, 2016 10:24 am

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

      Reply
    79. Tanja on January 5, 2016 5:43 pm

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

      Reply
    80. Ian on December 30, 2015 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.

      Reply
      • Rahul on December 31, 2015 9:55 am

        Hi Ian,

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

        Reply
    81. lanowar on December 26, 2015 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.

      Reply
    82. nicolas on December 14, 2015 9:04 pm

      Very nice, simple and useful

      Reply
    83. Allen Burns on December 9, 2015 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!

      Reply
      • ZAID BOUDAMOUZ on December 18, 2015 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)

        Reply
    84. IZVITE on December 7, 2015 10:19 am

      Thanks a lot!

      Reply
    85. Zacknov on December 5, 2015 2:24 pm

      Nice article. So the reference in my blog yes

      Reply
    86. Bharath on November 25, 2015 10:19 am

      Thanks a lot

      Reply
    87. java on November 21, 2015 12:24 pm

      thanks

      Reply
    88. Pracaonline on November 14, 2015 12:09 am

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

      Reply
    89. qwerty on October 29, 2015 9:45 am

      Thank you!

      Reply
    90. kevin on October 28, 2015 2:27 am

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

      Reply
    91. Miguel on October 25, 2015 12:09 am

      Very Nice, thanks!

      Reply
    92. yogesh on October 22, 2015 5:04 pm

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

      Reply
    93. Gabriel on October 19, 2015 5:40 am

      Thanks dude ° this information was util.

      Reply
    94. Gaspar on October 13, 2015 12:14 pm

      Good job!

      Reply
    95. Zvonimir on October 12, 2015 3:13 pm

      Does not work trows class not found exception

      Reply
    96. Yogendra on October 6, 2015 2:14 am

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

      Reply
    97. Mohammad Dashti on September 30, 2015 4:17 pm

      Thanks a lot.
      Very helpful.

      Reply
    98. Steve on September 30, 2015 1:59 pm

      Thanks man!! Worked like a champ!

      Reply
    99. Elvir on September 16, 2015 2:10 am

      Muito obrigado amigo.

      Reply
    100. bdnahomi on August 31, 2015 1:06 am

      Thank you very useful

      Reply
    101. Sergio on August 25, 2015 12:22 am

      Thanks

      Reply
    102. Gurbachan Singh on August 21, 2015 1:37 pm

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

      please help me to out this problem

      Reply
    103. Vinit on August 20, 2015 1:27 pm

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

      Reply
    104. David G. Pickett on August 18, 2015 9:49 pm

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

      Reply
    105. nelson molina on August 18, 2015 12:46 am

      Thanks very thamkful!!

      Reply
    106. Yura on August 7, 2015 9:12 pm

      Really helpful information.

      Reply
    107. Bala on August 5, 2015 2:07 pm

      Good One!

      Reply
    108. Leenie on August 2, 2015 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.

      Reply
    109. sumit on July 22, 2015 2:59 pm

      thankyou somuch

      Reply
    110. BPatient on June 24, 2015 10:36 am

      Thank you sharing a such helpful article

      Reply
    111. Aaron on June 22, 2015 7:44 pm

      idk how to install this

      Reply
    112. Harshita on June 12, 2015 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 ?

      Reply
      • Zoli1972 on July 21, 2015 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

        Reply
        • Zoli1972 on July 21, 2015 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

          Reply
    113. Sohan on June 8, 2015 11:43 am

      Very helpful article.

      Reply
    114. Sergio on June 1, 2015 6:01 pm

      Very helpful,

      Thanks !!!

      Reply
    115. Luigi on May 27, 2015 4:29 pm

      Very helpful article. Thanks.

      Reply
    116. Amit on May 26, 2015 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

      Reply
      • pritis on October 8, 2015 9:59 am

        use arrow keys to move, enter to accept

        Reply
    117. Os on May 22, 2015 9:35 pm

      Thank you!! It works!.

      Reply
    118. MARCELO on May 5, 2015 3:21 pm

      Thanks for the info! very helpful…

      Reply
    119. reshma on May 4, 2015 10:46 am

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

      Reply
    120. Javild on April 24, 2015 6:35 pm

      Thanks from a spanish user!

      Reply
    121. Rana on April 13, 2015 5:48 am

      Thanks! It helped a lot!

      Reply
    122. habdul on April 10, 2015 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?

      Reply
      • Rahul on April 11, 2015 3:20 am

        Hi Habdul,

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

        Reply
    123. NoSyu on January 6, 2015 7:02 am

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

      Reply
    124. Abdul Hannan on January 4, 2015 4:51 pm

      Will it work for Ubuntu 14.10?

      Reply
    125. Jim Somerville on December 28, 2014 12:51 am

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

      Reply
    126. carlos on December 22, 2014 2:56 pm

      thank you, greetings from México.

      Reply
    127. Satya Prakash Joshi on December 17, 2014 2:04 pm

      You made my day,, thanks allot

      Reply
    128. Zoltan on December 13, 2014 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!

      Reply
    129. tendertree on December 3, 2014 11:53 am

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

      Reply
    130. Avinash on November 30, 2014 10:55 am

      Thanks for the guide.. worked fine for me

      Reply
    131. Nerunja on November 29, 2014 3:18 am

      Thank you very much. This is really helpful.

      Reply
    132. Kevin on November 26, 2014 12:11 pm

      Awesome! very helpful!

      Reply
    133. Tiru on November 23, 2014 6:06 pm

      Very useful. Thank you.

      Reply
    134. Davi Lima on November 17, 2014 7:57 pm

      Very Easy for install Java in Ubuntu 🙂
      Nice Job

      Reply
    135. Marcio on November 11, 2014 3:57 pm

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

      great work

      Reply
    136. Erwin on November 10, 2014 11:58 am

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

      Reply
    137. Divine Martins Jr. on November 1, 2014 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

      Reply
    138. Ruben on October 29, 2014 8:39 pm

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

      Reply
    139. Victor on October 28, 2014 4:17 pm

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

      Reply
      • Tiru on November 23, 2014 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.

        Reply
    140. Telepath on October 24, 2014 9:34 pm

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

      Reply
    141. PK on October 21, 2014 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.

      Reply
      • Telepath on October 24, 2014 9:36 pm

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

        Reply
      • Hi on December 12, 2014 4:58 pm

        Yeah.. same problem here

        Reply
    142. Jeroen on October 6, 2014 9:09 pm

      Thanks man, saved me some time 🙂

      Reply
    143. ceghap on September 26, 2014 11:26 am

      thanks! 🙂

      Reply
    144. BlastedChango on September 22, 2014 8:19 pm

      Thank you very much, this helped a lot

      Reply
    145. Alan on September 22, 2014 2:29 am

      Very good, help so much

      Reply
    146. bigspawn on September 20, 2014 1:12 pm

      Thank’s for this article!

      Reply
    147. Elias on September 18, 2014 6:35 pm

      Thanks! Very helpful.

      Reply
    148. mike on September 13, 2014 9:42 pm

      you guys rock

      Reply
    149. Dery on September 12, 2014 10:07 pm

      Thank you so much!

      Reply
    150. Victor on September 8, 2014 6:51 pm

      Thank you!

      Reply
    151. eyescream on August 31, 2014 10:07 pm

      thank you very very much

      Reply
    152. juju on August 23, 2014 7:46 pm

      Missing the – in java -version

      Reply
      • juju on August 23, 2014 7:47 pm

        Woops! Retract that!

        Reply
    153. magma on August 22, 2014 6:40 pm

      many thanks, this helped a lot!

      Reply
    154. pedro on July 25, 2014 2:51 am

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

      Reply
    155. Madhu on July 22, 2014 7:45 am

      Useful Information, Thanks

      Reply
    156. Nestor Octavio on July 9, 2014 4:11 pm

      Nice tutorial
      Greetings from Mexico Wey!! :3

      Reply
    157. arxos on June 24, 2014 6:32 am

      Thanks!!!! God Thanks!!!!

      Reply
    158. wei-ting on June 1, 2014 8:58 pm

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

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.