Cov txheej txheem:

Kuv yuav uninstall Java 11 ntawm Ubuntu li cas?
Kuv yuav uninstall Java 11 ntawm Ubuntu li cas?

Video: Kuv yuav uninstall Java 11 ntawm Ubuntu li cas?

Video: Kuv yuav uninstall Java 11 ntawm Ubuntu li cas?
Video: Python! Extracting Text from PDFs 2024, Kaum ib hlis
Anonim

3 Teb

  1. Tshem tawm lub Oracle Java folder: sudo rm -r /usr/lib/jvm/ java ua - 11 -oracle.
  2. Nruab OpenJDK 8 los ntawm APT: sudo apt nruab openjdk-8- jdk ua openjdk-8- jre ua .
  3. Paub meej Java version siv: java ua -version.

Tsis tas li ntawd, kuv yuav tshem tawm Java 11 ntawm Linux li cas?

Uninstall Oracle JDK

  1. Tshem Qhov Txuas. Ua ntej ntawm tag nrho cov tshem tawm lwm txoj kev los ntawm kev ua raws li cov lus txib hauv qab no: $ sudo hloov tshiab-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"
  2. Tshem Cov Pob. Tom qab tshem tawm qhov txuas, tshem cov pob hauv /usr/lib/jvm/jdk[version] los ntawm kev ua raws li cov lus txib nram qab no:

Kuj Paub, yuav ua li cas kuv thiaj li tshem tawm Java? Rau uninstall Java , qhib Qhov rai Control Vaj Huam Sib Luag thiab nyem rau ntawm Uninstall ib qhov program link. Tom qab qhov Kev Pabcuam thiab Cov Ntais qhov rai sau tag nrho cov ntawv thov uas koj tau nruab rau hauv koj lub computer, tshawb rau Java thiab tshem tawm txhua Java installation thiab hloov tshiab uas tau nruab rau hauv koj lub computer.

Tib neeg kuj nug, yuav ua li cas kuv thiaj li tshem tawm JDK ntawm Ubuntu?

Txhawm rau tshem tawm tag nrho jdk ntawm koj lub cev, ua raws cov kauj ruam hauv qab no:

  1. Ntaus sudo apt-tau autoremove default-jdk openjdk- (Tsis txhob ntaus Enter tam sim no).
  2. Tam sim no nias tab khawm rau 2 lossis 3 zaug, koj yuav tau txais cov npe ntawm pob khoom pib nrog openjdk-.
  3. Nrhiav lub npe zoo li openjdk-11-jdk.

Kuv yuav hloov Java version hauv Ubuntu li cas?

Txoj kev tsim nyog thiab yooj yim dua rau hloov Java versions hauv Linux faib nrog "lwm txoj kev" system - piv txwv li hauv Debian lossis nws yog derivative Ubuntu - yog siv hloov tshiab- java ua -alternatives hais kom ua. Koj tuaj yeem khiav sudo hloov tshiab-alternatives --config java ua , thiab xaiv JDK 7, yog tias nws tau nruab.

Pom zoo: