0

I installed Oracle Java using this wikihow tutorial

This method involves removing OpenJDK, downloading a tarball, uncompressing it, and moving the binaries to system directories. This means that the application is unknown to dpkg and not found by any apt command or other package manager.

I tried the solutions in Uninstall Oracle JRE installed from tarball but they do not work for my case, for the reasons explained above.

1 Answers1

3
sudo update-alternatives --remove "java" "/usr/local/java/jre1.8.0_121/bin/java"    
sudo update-alternatives --remove "javac" "/usr/local/java/jre1.8.0_121/bin/javac"    
sudo update-alternatives --remove "javaws" "/usr/local/java/jre1.8.0_121/bin/javaws"    
sudo rm -r /usr/local/java/jre1.8.0_121
sudo updatedb
sudo locate -b '\pack200'
sudo rm /home/pietro/Documents/java/jre1.8.0_102/bin/pack200
sudo rm /usr/share/bash-completion/completions/pack200

This is how I managed to get rid of it.

Zanna
  • 70,465