Faka i-Oracle Java 10: Via iTheminali evela kwi-GNU / Linux

IJava 10 Oracle

I-Oracle ikhuphe iJava 10

Kule nto ukungena ezintsha malunga njani "Funda indlela yokufaka iOracle Java" ngoku kwi Inguqulelo 10. Siza kuqinisekisa kwaye sihlaziye imiyalelo yesiphelo esifanelekileyo esivumela ngesandla okanye Uyilo Iskripthi seBash Shell ukuba ndiwenze ngokwam umsebenzi odinisayo wokufaka JDK kunye noJRE.

Masikhumbule ukuba zombini i-OpenJDK kunye nesongezo kwizikhangeli ezibizwa ngokuba yi-IcedTea kulula ukuzifaka. kwaye uninzi lwamaxesha lubandakanya konke okulindelweyo kuphuhliso kunye nokwenziwa kwe-Intanethi kwezicelo ngokusekwe kwimveliso yeOracle, kodwa ngamanye amaxesha inkxaso yoqobo enikezwe yiOracle ibhetele, ke ayikaze ibuhlungu into yokwazi ukuyifaka ukusuka ekuqaleni xa ifayile ye- VulaJDK y Iti ebandisiwe ayizanelisi iimfuno zethu zenkxaso yeJava kwiNkqubo yethu yokuSebenza Simahla.

I logo ye-OpenJDK

I-OpenJDK + IcedTea

Okwangoku ezi iplagi zisimahla zeOracle Java zinokufakwa ngokulula kwikhonkco kwaye kuxhomekeke kuguqulelo lweSebe (iDistro) kunye nohlobo lweNkqubo yeNkqubo yokuSimahla, ngolu hlobo lulandelayo:

aptitude install default-jdk

aptitude install openjdk-7-jdk
aptitude install openjdk-7-jre

aptitude install openjdk-8-jdk
aptitude install openjdk-8-jre

aptitude install openjdk-9-jdk
aptitude install openjdk-9-jre

aptitude install icedtea-netx
aptitude install icedtea-plugin

I-Oracle Java 10 ikhutshiwe

I-Oracle Java

Sebenzisa i-JDK-JRE inkxaso (yoqobo kunye nokuthengisa) inokusinika kwiimeko ezininzi ukuhambelana okukhulu, inkxaso kunye nemisebenzi emitsha kunaleyo inikwe yi-OpenJDK kunye ne-IcedTea.

Xa ukhetho lwethu lomsebenzi kunye nezi zicelo zifumaneka kwifomathi yasimahla kugqithisiwe, kwaye kuthathelwa ingqalelo ngokubanzi, azifumaneki kulwabiwo lwethu okanye kugcino lwenguqulelo yamva nje yeJDK, kungcono emva koko ukwenze ngesandla okanye ngeSkripthi. ka-Bash Shell uthe ufakelo, into esebenzayo kakhulu.

Ke ngoko, usebenzisa i I-Java Development Kit (i-Oracle JDK) eyiKit yaseburhulumenteni yoPhuculo kulwimi lwenkqubo yeJava, indawo ejolise kuphuhliso lwento, iluncedo kakhulu kwaye iyimfuneko.

I-Banner Java + DEBIAN

Kwaye kutheni ufake iJava JDK?

Ukukhumbula iiposti zangaphambili kwi JDK ngaphakathi nangaphandle kwale bhlog sinako ukuhlanganisa malunga JDK ukuba le software okanye usetyenziso Isivumela ukuba sibhale ii-applet zeJava kunye nokusetyenziswa ngaphakathi okanye ngaphandle kwesikhangeli se-Intanethi.

I-JDK ikwabandakanya iJava Runtime Environment (JRE), iJava Compiler, kunye neeJava APIs. Eyona iluncedo kakhulu kwiinkqubo ezintsha ezinamava.

I-JDK ayimfuneko kangako kumaxesha oMsebenzisi oqhelekileyo okanye osisiseko, ngamanye amaxesha izinto ezilula ezinje ngeMidlalo yeConsole ekwi-Intanethi.

Kwelinye icala, kubasebenzisi abaphambili okanye kulawulo isetyenziswa amaxesha ngamaxesha kwizinto ezinje ngeziqinisekiso zekhompyuter, kuba amaqhosha ayo ziiapplet.

Ngoko ke, Amaxesha amaninzi kubalulekile ukuba uyifakele ukuba awufuni kuphoswa yinxalenye elungileyo yewebhu. Oko kukuthi, nangona kunamaphepha amaninzi e-web anezinto ezincinci ze-JDK (amaqhosha, iimenyu) okanye eziyilelwe ngokupheleleyo kwi-JDK.

Ke ngoko, iJava JDK ayinakuphuthelwa kwiKhangelo leWebhu kunye neNkqubo yokuSebenza ngokubanzi!

Khuphela iJava 10 kwiOracle

Amanyathelo angaphambili

Ngaphambi kokufaka i-JDK ngokusebenzisa imiyalelo, kuya kufuneka khuphela kwiwebhusayithi yeOracle, ke unokuya kuyo usebenzisa i-intanethi yokukhangela oyikhethileyo okanye ikhonkco elilandelayo: I-Oracle-JDK 10

Emva kokukhutshelwa, inokuthi okanye ingavuleki kwaye ingakhutshelwa kwindawo yomzobo womsebenzisi ukuya apho kufanelekileyo, kodwa siya kwenza la manyathelo avela kwikhonsoli.

Ukufaka iJava ngeMiyalelo yesiphelo

Yalela imiyalelo

Imiyalelo yomyalelo ebhalwe apha ngezantsi inokwenziwa ngesandla okanye ngaphakathi kweskripthi seBash Shell esizisebenzelayo:

sudo -s

tar -zxvf Descargas/jdk-10.0.1_linux-x64_bin.tar.gz -C /usr/lib/jvm/

echo "JAVA_HOME=/usr/lib/jvm/$VERSION" >> /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-10.0.1/bin/java 1

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

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

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

update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/jdk-10.0.1/lib/libnpjp2.so 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 javaws /usr/lib/jvm/jdk-10.0.1/bin/javaws

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

update-alternatives --set mozilla-javaplugin.so /usr/lib/jvm/jdk-10.0.1/lib/libnpjp2.so

cd /usr/lib/mozilla/plugins/

rm -f libnpjp2.so

ln -s /usr/lib/jvm/jdk-10.0.1/jre/lib/libnpjp2.so

. /etc/profile

Imiyalelo yesiphelo ukujonga ukufakwa kweJava

Uqinisekiso

Ungajonga ukuba uyifakile i I-Oracle Java 10 (JDK-JRE) Zombini zekhonsoli kunye nesikhangeli, usebenzisa iOracle esemthethweni Java yohlobo lokujonga: Applet yovavanyo

Ngekhonsoli

Sebenzisa le miyalelo ilandelayo:

java -version

 

javac -version

Ngomkhangeli

Sebenzisa uhlobo lweFirefox 51 okanye ngaphambili, okanye nasiphi na isiKhangeli seWebhu esixhasa iJavaUkusukela ezona zixhaphakileyo, ezinje ngokuhlaziywa, ezinje ngeFirefox 52+, iOpera Browser kunye neGoogle Chrome, zikhubazekile ngokungagqibekanga ukuze ungaqhubi iJRE.

NgeNkqubo yokuSebenza

Sebenzisa okanye ufake isicelo esivela kwiJava okanye efuna inkxaso yeJDK / JRE efakiweyo ukujonga ufakelo oluchanekileyo lwayo.

Kuxhomekeka ekubeni nganye nganye iqhubele phambili njani ukusebenzisa iShell Scripting, le miyalelo inokukuvumela ukuba wenze ifayile ye-.sh ukwenza la manyathelo ngokuzenzekelayo. Kwaye unokwenza nenkqubo kuyo ukukhuphela ingxelo yokugqibela yeJava ebonisa nge-terminal eluhlobo lwamva nje olukhutshiweyo.

Ukuzenzekelayo la manyathelo kwiSkripthi seBash Shell kunokwenza ukuba ukhuphele iJava JDE yonke isebenze kwimizuzwana engaphantsi kwama-30. Emva koku, ungasifaka nasiphi na isicelo kwiNkqubo yokuSebenza efuna inkxaso ye-JDK kwaye usebenze nayiphi na iiapps eziyifunayo kwisikhangeli esisekwe kwiMozilla Firefox engaphantsi kwenguqulo 51 okanye elungiselelwe ukongezwa kweJRE.

Khumbula, umbono kukuqonda indlela umgca ngamnye ngomgca, ukuyalela ngomyalelo, okwahlukileyo ngemisebenzi eyahlukileyo, ukuqonda nokufunda iShell Scripting. Ke ngale posi intsha ndikushiya nesabelo esitsha sophando.

Ukuba ufuna ukubrasha kwi-Shell Scripting unokuphinda ujonge ezi mpapasho zangaphakathi: Ukushicilela kweShell kwiLinux

Kwaye ukuba ufuna ukufunda okungakumbi malunga nesihloko esichukumisiweyo Ungandwendwela upapasho olusemthethweni lweJava kufakelo kule khonkco: Isikhokelo sokuFakwa koHlelo oluSisiseko okanye ubukele ividiyo engezantsi:


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-5, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   UFrank Davila sitsho

    Unjani ufakelo kwiArch?

    1.    Ing. UJoseph Albert sitsho

      Khange ndiyiphathe iArch ngaphambili kodwa ndicinga ukuba inkqubo kufuneka ifane kakhulu!

  2.   herjo sitsho

    Ndizisebenzisile zombini iindlela kwaye ndenze ngcono nge-openjdk kuneJava, kungcono ukudityaniswa nenkqubo kwaye khange ndibenangxaki zokuhambelana.

    1.    Ing. UJoseph Albert sitsho

      Ewe kunokwenzeka, amaxesha amaninzi yonke into ixhomekeke kwizinto ezininzi: Inkqubo yokuSebenza, i-OpenJDK okanye uguqulelo lweJava JDK kwaye ngamanye amaxesha inokuxhomekeka kwi-HW.

      1.    Ukufaka i-Linux Post sitsho

        Sele ifikile kuthi, iJava 18