How to uninstall Oracle JDK in Ubuntu 16.04 LTS - Ask Ubuntu


i installed oracle jdk on ubuntu 16.04 lts using following commands:

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

but tried various suggestions forums , didn't solve issue. purged ppa , did update wouldn't remove.

to remove oracle jdk completely, run commands given below(one-by-one) terminal :-

  • check jdk packages installed

    sudo dpkg --list | grep -i jdk

  • remove oracle java 8 completely

    sudo apt-get purge oracle-java8-installer sudo apt-get autoremove 
  • check jdk packages have been removed

    sudo dpkg --list | grep -i jdk

then if want to, can purge ppa.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User