Thank you.See Also: Step 1: Install OpenJDK 11 on CentOS 7 yum -y install java-11-openjdk java-11-openjdk-devel cat > /etc/profile.d/java11.sh > ~/.bash_profile source ~/.bash_profile Share this, if it is helpful to you and please report us if you found and error in this post. $ sudo apt-get purge -auto-remove openjdk* If you want to remove Openjdk along with dependencies and it’s configuration files, execute the following command on terminal: If you want to remove Openjdk and it’s configuration files, execute the following command on terminal: $ sudo apt-get remove -auto-remove openjdk* If you want to remove Openjdk along with dependencies, execute the following command on terminal: If you want to remove Openjdk only, execute the following command on terminal: For example: jdk1.8.0_131.Īfter removing link, remove the package inside /usr/lib/jvm/jdk by executing following command: Note: Replace the with any version number that’s contained in jdk folder’s name. $ sudo update-alternatives -remove "javaws" "/usr/lib/jvm/jdk /jre/bin/javaws".$ sudo update-alternatives -remove "javac" "/usr/lib/jvm/jdk /bin/javac".$ sudo update-alternatives -remove "java" "/usr/lib/jvm/jdk /bin/java".Now follow the instructions below according to the JDK you have installed.įirst of all remove the alternatives by executing the following commands: OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)Įlse if you have Openjdk installed then you will get the following result: java -version Java(TM) SE Runtime Environment (build 1.8.0_112-b15) If you have Oracle JDK installed then you will get the following result: java -version For that execute the following command in the terminal: So, first of all, check the vendor of the JDK you have installed on your system, whether it is Oracle JDK or Openjdk. The tasks performed on Ubuntu 16.04, but this will also work on other Debian Based Linux like Linux Mint, Kali Linux, etc. This tutorial is written to help New Linux Users, who want to uninstall Java Development Kit (JDK) installed on their Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |