Best Answer: How Do I Uninstall Java 11 and Install Java 8 Ubuntu?
Contents How Do I Uninstall Java 11 on Ubuntu? to Completely Remove Jdk from Your System, Follow These Below Steps: Type Sudo Apt-Get Autoremove Default-Jdk...
Contents
How do I uninstall Java 11 on Ubuntu?
To completely remove jdk from your system, follow these below steps:
- Type sudo apt-get autoremove default-jdk openjdk- (Don’t hit Enter right now).
- Now press tab button for 2 or 3 times, you will get list of packages starting with openjdk- .
- Look for name like openjdk-11-jdk .
How do I switch from Java 11 to Java 8 Ubuntu?
Best Answer
- You have to install the openjdk-8-jre : sudo apt-get install openjdk-8-jre.
- Next switch to the jre-8 version: $ sudo update-alternatives –config java There are 2 choices for the alternative java (providing /usr/bin/java).