Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  50] [ 0]  / answers: 1 / hits: 183291  / 2 Years ago, mon, april 18, 2022, 12:29:50

I didn't find any related articles about How to remove Oracle JDK. There are some related articles but they didn't solve the problem.



I installed Oracle JDK tarball file from Oracle site by following this article How do I install Oracle Java JDK 7. It was very helpful. But still I don't know what I should do in order to uninstall Oracle JDK.


More From » uninstall

 Answers
5

It could be done like this:




  1. Remove the link:



    sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"    
    sudo update-alternatives --remove "javac" "/usr/lib/jvm/jdk[version]/bin/javac"
    sudo update-alternatives --remove "javaws" "/usr/lib/jvm/jdk[version]/bin/javaws"

  2. Then, remove the package in the /usr/lib/jvm:



    sudo rm -r /usr/lib/jvm/jdk[version]



Note :




  • Change [version] with any version number that's contained in jdk
    folder's name, example: jdk[version] = jdk1.7.0_13.


  • If you are new to Linux, you should probably get familiar with the manual page. Lot of good stuff from there. Just go to the terminal and type
    man update-alternatives.



[#39561] Tuesday, April 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kroapathe

Total Points: 445
Total Questions: 117
Total Answers: 99

Location: Botswana
Member since Sun, Sep 19, 2021
3 Years ago
;