Custom Search

Thursday, October 17, 2013

How to Install Oracle Java JDK 8 in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Add Repo
#sudo add-apt-repository ppa:webupd8team/java

2)
Update Repo
#sudo apt-get update

3)
Install Oracle Java 8
#sudo apt-get install oracle-java8-installer



4)
To automatically set up the Java 8 environment variables
#sudo apt-get install oracle-java8-set-default

5)
Check Version
#java -version

6)
Remove Oracle Java 8
a)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk

b)
Remove Oracle Java 8

#sudo apt-get purge oracle-java8-installer
OR
#sudo apt-get remove oracle-java8-installer

c)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

4 comments:

  1. very simple, nice, thanks for all.

    ReplyDelete
  2. giving error on installation: bash: /usr/bin/java: No such file or directory
    please provide some solution

    ReplyDelete
  3. Superb blog. I really enjoyed very much with this article here. Really its a amazing article that I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.
    Java Training in Chennai

    ReplyDelete