I-Java 18: Ukufaka nokulungiselela i-Oracle JDK 18 ku-Debian 11

I-Java 18: Ukufaka nokulungiselela i-Oracle JDK 18 ku-Debian 11

I-Java 18: Ukufaka nokulungiselela i-Oracle JDK 18 ku-Debian 11

Ezinsukwini ezimbalwa ezedlule (22/03), inhlangano I-Oracle imemezele ukutholakala kwe-"Java 18". Inguqulo yakamuva yolunye lwezilimi zokuhlela ezisetshenziswa kakhulu kanye ne inkundla yokuqala yomhlaba wonke yokuthuthukisa. Iphakheji entsha noma uhlelo, olwaziwa nangokuthi I-Oracle JDK 18, inikeza izinkulungwane zentuthuko mayelana nokusebenza, ukuzinza nokuvikeleka. Futhi ngaphezu kwalokho, kufaka phakathi iziphakamiso eziyisishiyagalolunye zokuthuthukisa inkundla, ngaleyo ndlela kuthuthukiswe ukukhiqiza konjiniyela.

Kodwa-ke, kulolu shicilelo ngeke sihlole izinto ezintsha noma intuthuko yalo, njengoba sikwenzile lokho ezinsukwini ezimbalwa ngemva kokwethulwa kwayo. Lapha, sizocubungula izici ezingokoqobo nezezobuchwepheshe, okungukuthi, ngeyakhe ukufakwa nokusetha mayelana namanje Ukusatshalaliswa kwe-GNU / Linux de Isitebhisi seDebian.

IJAVA SE 14

Futhi njengenjwayelo, ngaphambi kokungena ngokugcwele esihlokweni sanamuhla on the ukufakwa nokusetha yenguqulo yakamuva etholakalayo ye IJava JDK, okungukuthi, inguqulo Java 18, obeye aziwe njengo I-Oracle JDK 18, sizoshiyela labo abathakazelayo izixhumanisi ezilandelayo zezincwadi ezihlobene zangaphambilini. Ngendlela yokuthi bangazihlola kalula, uma kunesidingo, ngemva kokuqeda ukufunda le ncwadi:

"Le nguqulo entsha ye-Java SE 18 ifika ngaphandle kokukhishwa kwezinye izici ezihoxisiwe, igcina ukuhambisana nezinguqulo zangaphambilini zeplathifomu ye-Java, futhi amaphrojekthi amaningi e-Java abhalwe ngaphambilini azoqhubeka nokusebenza angashintshile lapho esetshenziswa inguqulo entsha. Futhi umbhalo wayo ozenzakalelayo yi-UTF-8". Uhlobo olusha lweJava SE 18 selukhishiwe futhi lezi yizindaba zalo

I-athikili ehlobene:
Ukwakhiwa kweMicrosoft Java manje sekutholakala kuwo wonke umuntu

I-athikili ehlobene:
I-Oracle imemezele ukukhishwa kweJava SE 15, yazi ukuthi yini okusha
I-athikili ehlobene:
Faka i-Oracle Java 10: Via Terminal kusuka ku-GNU / Linux

I-Java 18: Ukusebenza okuningi, ukuzinza nokuthuthukiswa kokuphepha

I-Java 18: Ukusebenza okuningi, ukuzinza nokuthuthukiswa kokuphepha

Ungayisebenzisa kanjani iJava 18?

Landa

zokulanda I-Java 18 (Oracle JDK 18) okulandelayo kufanele kufinyelelwe isixhumanisi bese ulanda ifayela le- .deb ifayela uzimisele Ukusatshalaliswa kwe-GNU / Linux ngokusekelwe ku Isitebhisi seDebian.

Ukufakwa

Uma isilandiwe, siqhubekela ekufakweni kwayo ngendlela ekhethwayo, okungukuthi, nge- i-apt noma i-dpkg command. Esimweni sethu sokusetshenziswa, sisebenzisa umyalo olandelayo womyalo:

«sudo apt install ./Descargas/jdk-18_linux-x64_bin.deb»

Isethaphu

Uma iphakheji selifakiwe, sisadinga ukuqhubeka lungisa i-java 18, ukuze icushwe njenge inguqulo ezenzakalelayo, kusukela manje wethu Isistimu yokusebenza esetshenzisiwe (Izimangaliso GNU / Linux), iza nayo I-OpenJDK 11.

Futhi kulokhu, sidinga ukufana umsebenzisi womlawuli (impande), sebenzisa imiyalo elandelayo:

sudo -s

echo "JAVA_HOME=/usr/lib/jvm/jdk-18" >> /etc/profile

echo "PATH=$PATH:$HOME/bin:$JAVA_HOME/bin" >> /etc/profile

echo "export JAVA_HOME" >> /etc/profile

echo "export PATH" >> /etc/profile

update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-18/bin/java 1

update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-18/bin/javac 1

update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-10.0.1/bin/jar 1

update-alternatives --set java /usr/lib/jvm/jdk-10.0.1/bin/java

update-alternatives --set javac /usr/lib/jvm/jdk-10.0.1/bin/javac

update-alternatives --set jar /usr/lib/jvm/jdk-10.0.1/bin/jar

. /etc/profile

Ukuqinisekiswa kwe-Oracle JDK

Ukuqinisekiswa

Uma sesiqedile ngale nqubo, singenza okulandelayo imiyalo yokuyala Ukuqinisekisa ukuthi konke kuhambe kahle:

java --version

javac --version

jar --version

Kuleli qophelo, akukho okumele ukwenze ngaphandle kokuzama uhlelo lwe-Java noma ukuthuthukiswa ukuze ujabulele izinzuzo zenguqulo entsha efakiwe.

"Amabhinari e-Microsoft OpenJDK e-Java 11 asekelwe kukhodi yomthombo ye-OpenJDK, elandela imibhalo yokukhishwa efanayo esetshenziswa iphrojekthi ye-Eclipse Adoptium futhi ehlolwe yi-Eclipse Adoptium QA suite (okuhlanganisa nokuhlolwa kwephrojekthi ye-OpenJDK)". IMicrosoft imemezele ukutholakala kwenguqulo yokubuka kuqala ye-OpenJDK

Umjikelezo: Okuthunyelwe kwesibhengezo sango-2021

Isifingqo

Kafushane, ukuba Java 18 kanye nanoma iyiphi inguqulo yangaphambilini noma elandelayo ehlobene nephakheji yoqobo yolunye lwezilimi ezinhle kakhulu zokuhlela kanye nenkundla yokuqala yokuthuthukisa emhlabeni ku-Debian Distros yethu ezinzile ayinzima neze. Futhi esimweni esihle kakhulu, ngaso sonke isikhathi kunconywa ukusebenzisa inguqulo yamahhala nevuliwe ebizwa nge-OpenJDK, nayo ethuthukiswa ngokuhlanganyela ne-Oracle.

Siyethemba ukuthi lolu shicilelo luwusizo olukhulu kubo bonke «Comunidad de Software Libre, Código Abierto y GNU/Linux». Futhi ungakhohlwa ukuphawula ngakho ngezansi, futhi wabelane ngakho nabanye kumawebhusayithi ayizintandokazi zakho, iziteshi, amaqembu noma imiphakathi yezokuxhumana nabantu noma izinhlelo zemiyalezo. Ekugcineni, vakashela ikhasi lethu lasekhaya ku «KusukaLinux» ukuhlola ezinye izindaba, bese ujoyina isiteshi sethu esisemthethweni se- Yocingo kusuka ku-DesdeLinux, ENtshonalanga iqembu ukuze uthole ulwazi olwengeziwe ngale ndaba.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-2, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe.

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   I-Choripan kusho

    Kunoma iyiphi i-distro, i-Java yokugcina oyifakile, kungakhathaliseki ukuthi inguqulo yaluphi, izoba ezenzakalelayo yisistimu, noma ngabe une-javas ehlukene engu-7 efakiwe, eyokugcina oyifakile, noma ngabe isuka ku-Oracle noma cha, ihlala njengokuzenzakalelayo, uyayenza. akudingekile ukwenza noma yini ukuyikhetha.

    1.    Ukufaka kwe-Linux Post kusho

      Sawubona, Choripan. Siyabonga ngokuphawula kwakho. Impela, lokhu kufanele kube njalo lapho inguqulo ye-OpenJDK noma ye-Java JDK ifakiwe isuka kumakhosombe, kodwa kulokhu, kusetshenziswa ifayela le-.deb elisuka kuwebhusayithi ye-Java, futhi ulifaka ku-MX Linux, bekungenjalo. Ngakho-ke, kwakudingeka ngiyilungiselele ngesandla, okungukuthi, kwakuyinguqulo ezenzakalelayo.