How to install Oracle Java JDK on Ubuntu Linux (14.04 LTS) - Learn Online

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

ensure your JAVA_HOME variable has been set to:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle





How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?
How to install Oracle Java on Ubuntu 14.04?
Easy Ways to Install Oracle Java JDK on Ubuntu Linux
How To Install Java on Ubuntu with Apt-Get
Searches related to How to install Oracle Java JDK on Ubuntu
ubuntu install jdk 8
ppa:webupd8team/java
unable to locate package oracle-java8-installer
download java for ubuntu
ubuntu set java_home
openjdk 8 ubuntu
update java ubuntu
uninstall java ubuntu


23 comments:

  1. Khalil Mohammad Mirza1 March 2017 at 15:43

    it's showing an error"unable to locate package oracle-javaB-installer"

    ReplyDelete
  2. thansk boss!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    ReplyDelete
  3. error when typing gedit /etc/profile please help:D

    ReplyDelete
  4. After completing 58% it wouldn't proceed anymore.When I want to re-install it again , it shows this error after executing the 3rd command : Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    Moreover when i was going to download the jvm file which was created on first installetion time, this file can't be deleted.What should i do now ?

    ReplyDelete
  5. vishal maheshwari1 March 2017 at 15:43

    It was really helpful.Thanks!!

    ReplyDelete
  6. Sriram Adusumilli Try doing this in root or give the user you have selected admin privileges.

    ReplyDelete
  7. Sriram Adusumilli1 March 2017 at 15:43

    Thanks for response, issue got solved

    ReplyDelete
  8. Sriram Adusumilli No problem! Happy to help.

    ReplyDelete
  9. Sriram Adusumilli1 March 2017 at 15:43

    i am trying to install in ubuntu 16.04 in second step it says 0 percent it says connecting us.ubutu... and nothing is going after plz help me

    ReplyDelete
  10. marocgame minecraft1 March 2017 at 15:43

    thx minecraft 1.11 run better

    ReplyDelete
  11. smrutiprajna mallick1 March 2017 at 15:43

    [email protected]:~$ 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 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 oracle-java8-installer oracle-java8-set-default
    0 upgraded, 3 newly installed, 0 to remove and 123 not upgraded.
    Need to get 36.4 kB of archives.
    After this operation, 209 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    WARNING: The following packages cannot be authenticated!
    oracle-java8-installer oracle-java8-set-default
    Install these packages without verification? [y/N]
    E: Some packages could not be authenticated
    sir after given third command showing this problem.what can i do.please help me

    ReplyDelete
  12. shiva chittiprolu1 March 2017 at 15:43

    after pasting third command it's showing an error"unable to locate package oracle-javaB-installer"

    ReplyDelete
  13. thankkkk youuuuu

    ReplyDelete
  14. help me its showing me an warning: ** (gedit:5601): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

    ReplyDelete
  15. Ruturaj Jadeja1 March 2017 at 15:43

    Great buddy! :)

    ReplyDelete
  16. thanks a lot boss

    ReplyDelete
  17. Lathan Samanthan1 March 2017 at 15:43

    WHAT i did not even see the commands!!!!!!!!!!!:(

    ReplyDelete
  18. Rafal noshotgun1 March 2017 at 15:43

    Like allways well and simple explaind- Thank You ;)

    ReplyDelete
  19. help me after performing 2nd command no update are showing instead it shows

    danger[email protected]:~$ sudo apt-get update
    E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/lib/apt/lists/
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    ReplyDelete
  20. is it necessary to download environment too??

    ReplyDelete
  21. thanks, this worked..

    ReplyDelete
  22. after i copy and paste the first command this shows up "k****** is not in the sudoers file. This incident will be reported." can anyone please tell me why does this show up?

    ReplyDelete

Note: only a member of this blog may post a comment.