How Do I Uninstall Java 11 on Ubuntu?
Contents How Do I Uninstall Java on Ubuntu? 8 Answers Remove All the Java Related Packages (Sun, Oracle, Openjdk, Icedtea Plugins, Gij): Dpkg-Query -W...
Contents
How do I uninstall Java on Ubuntu?
8 Answers
- Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): dpkg-query -W -f=’${binary:Package}n’ | grep -E -e ‘^(ia32-)?( …
- Purge config files (careful. …
- Remove Java config and cache directory: sudo bash -c ‘ls -d /home/*/.java’ | xargs sudo rm -rf.
2 дек. 2011 г.
Must Read
How do I remove old Java version from Linux?
- purge the older with sudo apt-get purge openjdk-*
- Add repository sudo add-apt-repository ppa:openjdk-r/ppa.
- Update the packages sudo apt-get update.
- Install java 8 with sudo apt-get install openjdk-8-jdk.
- To check list of java versions installed do sudo update-java-alternatives –list.