Answered [HELP] Install jdk on elementaryos to code java

Discussion in 'Newbie Questions' started by Nguyễn Lê Lý Bằng, Jun 14, 2015.

  1. Nguyễn Lê Lý Bằng

    Nguyễn Lê Lý Bằng Thread Starter
    Expand Collapse
    New Member

    Joined:
    Jun 14, 2015
    Messages:
    2
    Likes Received:
    1
    Hello everybody!
    I'm new to linux (using Elementary OS Freya) so I don't know how to install jdk + jre on this os. I have searched on google but I can't install it. So, could you show me how to install it?
     
  2. paradise

    paradise
    Expand Collapse
    Elementary Supporter

    Joined:
    Dec 3, 2014
    Messages:
    121
    Likes Received:
    33
    Hi Bang,

    because ElementaryOS Freya is built on core of Ubuntu 14.04 LTS, you can use the Ubuntu PPA. A developer Team called "WebUpd8" is updating their non-official repository with Oracle JDKs 7 and 8 installers. Just add the PPA-Repository and install (here: java8) it this way, type in your Terminal:

    Code (Text):
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    PPA Repository Info Page: https://launchpad.net/~webupd8team/+archive/ubuntu/java

    Hope it works :)
     
  3. Nguyễn Lê Lý Bằng

    Nguyễn Lê Lý Bằng Thread Starter
    Expand Collapse
    New Member

    Joined:
    Jun 14, 2015
    Messages:
    2
    Likes Received:
    1
    Tks verymuch, it worked :)
     
    paradise likes this.
  4. Nettlebay

    Nettlebay
    Expand Collapse
    New Member

    Joined:
    Sep 30, 2015
    Messages:
    1
    Likes Received:
    0
    For Java 9:
    Code (Text):
    sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java9-installer
     
  5. MarkoMAXon

    MarkoMAXon
    Expand Collapse
    New Member

    Joined:
    Nov 2, 2018
    Messages:
    1
    Likes Received:
    0
    marko@maxon-HP:~$ sudo add-apt-repository ppa:webupd8team/java
    [sudo] password for marko:
    sudo: add-apt-repository: command not found


    what s wrong?? Can you help me? Problem is on Elementary 18.04
     

Share This Page

Loading...