To remove Oracle JDK, It could be done like this:
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"
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"
Then, remove the package in the /usr/lib/jvm:
$ sudo rm -r /usr/lib/jvm/jdk[version]
Komentar
Posting Komentar