How do I completely remove Java from Linux?
If you want to completely remove Java from your Linux box, the procedure of removing the symbolic link is described below.
- Open Terminal Window.
- Log in as the super user.
- Type: rm /usr/lib/mozilla/plugins/libnpjp2.so.
- You will be prompted to remove symbolic link: rm: /usr/lib/mozilla/plugins/libnpjp2.so?
- Type: Y.
How do I uninstall Java 11 and install Java 8 Ubuntu?
- Remove the Oracle’s Java folder: sudo rm -r /usr/lib/jvm/java-11-oracle.
- Install OpenJDK 8 from APT: sudo apt install openjdk-8-jdk openjdk-8-jre.
- Confirm Java version using: java -version.
How do I uninstall Java on Ubuntu?
Open up the terminal on Ubuntu. Get the JDK package name using dpkg and grep….Remove Java from Ubuntu
- Launch the terminal using Ctrl + Alt + T.
- Issue the following command to remove Java from your system. sudo apt remove default-jdk default-jre.
- Confirm the uninstallation process by typing y.
How do I uninstall Java and Maven 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.
How do I remove older versions of Java in Ubuntu?
- 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.
How do I change Java version in Ubuntu?
To switch between installed java versions, use the update-java-alternatives command. where /path/to/java/version is one of those listed by the previous command (e.g. /usr/lib/jvm/java-7-openjdk-amd64 ).
How do I uninstall Java from Ubuntu?
How do I uninstall Java 8 on Linux?