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
it's showing an error"unable to locate package oracle-javaB-installer"
ReplyDeletethansk boss!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ReplyDeleteerror when typing gedit /etc/profile please help:D
ReplyDeleteAfter 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?
ReplyDeleteMoreover 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 ?
It was really helpful.Thanks!!
ReplyDeleteSriram Adusumilli Try doing this in root or give the user you have selected admin privileges.
ReplyDeleteThanks for response, issue got solved
ReplyDeleteSriram Adusumilli No problem! Happy to help.
ReplyDeletei 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
ReplyDeletethx minecraft 1.11 run better
ReplyDeletemruti@smruti:~$ sudo apt-get install oracle-java8-installer
ReplyDeleteReading 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
after pasting third command it's showing an error"unable to locate package oracle-javaB-installer"
ReplyDeletethankkkk youuuuu
ReplyDeletehelp me its showing me an warning: ** (gedit:5601): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
ReplyDeleteeasy!
ReplyDeleteGreat buddy! :)
ReplyDeletethanks a lot boss
ReplyDeleteWHAT i did not even see the commands!!!!!!!!!!!:(
ReplyDeleteLike allways well and simple explaind- Thank You ;)
ReplyDeletehelp me after performing 2nd command no update are showing instead it shows
ReplyDeletedangerous@dangerous-HP-Pavilion-Gaming-Notebook:~$ 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?
is it necessary to download environment too??
ReplyDeletethanks, this worked..
ReplyDeleteafter 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