Njira zothetsera Telegram mtumiki pa iPhone

Zigawo za Java zimayenera kuyendetsa ntchito zosiyanasiyana ndi mawebusaiti, kotero pafupifupi aliyense wogwiritsa ntchito makompyuta akukumana ndi kusowa koyika pa nsanja iyi. Inde, mfundo yochitira ntchitoyi imasiyana mosiyana ndi machitidwe, koma ndi Linux zimagawidwa nthawi zonse, ndipo tikufuna kufotokoza momwe Java imayikidwira mu Ubuntu. Omwe amsonkhano ena adzafunika kubwereza malangizo omwe aperekedwa, poganizira zizindikiro za dongosolo.

Sakani Java JRE / JDK mu Linux

Lero tikupereka kuti tidziwitse njira zosiyana siyana zowonjezera makanema a Java, popeza zonsezi zidzakhala zothandiza komanso zogwiritsidwa ntchito pazinthu zina. Mwachitsanzo, ngati simukufuna kugwiritsa ntchito zipangizo zachitatu, kapena ngati mukufuna kuika Java mbali imodzi, ndiye kuti muyenera kugwiritsa ntchito njira yosiyana. Komabe, tiyeni tiwone bwinobwino onsewo.

Choyamba, tikulimbikitsidwa kufufuza zosintha zosungirako dongosolo ndikupeza Java yamakono, ngati ilipo mu OS. Izi zonse zachitidwa kudzera mu ndondomeko yoyenera:

  1. Tsegulani menyu ndikuyendetsa "Terminal".
  2. Lowani timusudo apt-get update.
  3. Lowetsani mawu achinsinsi anu kuti mupeze mizu.
  4. Mutalandira mapepalawa, gwiritsani ntchito lamulojava -versionkuti muwone zambiri za java yomwe yaikidwa.
  5. Ngati mulandira chidziwitso chofanana ndi chomwe chili pansipa, ndiye Java si yanu.

Njira 1: Maofesi Ovomerezeka

Njira yophweka ndiyo kugwiritsa ntchito malo ovomerezeka kuti muwulande Java, omwe omasulira omwe amatsitsa kumeneko. Muyenera kulemba malamulo angapo kuti muwonjezere zigawo zonse zofunika.

  1. Thamangani "Terminal" ndipo lembani pameneposudo apt-get install default-jdkndiyeno dinani Lowani.
  2. Onetsetsani Kuwonjezera kwa mafayilo.
  3. Tsopano yonjezerani JRE polembasudo apt-get install default-jre.
  4. Wosatsegula plugin amene akuwonjezedwa kudzerasudo apt-get kukhazikitsa icedtea-plugin.
  5. Ngati mukufuna kupeza zolemba zokhudzana ndi zigawo zina, pewani ndi lamulosudo apt-get install default-jdk-doc.

Ngakhale kuti njirayi ndi yosavuta, sizili zoyenera kukhazikitsa mabuku osungirako atsopano a Java, chifukwa sakhala atayikidwa mu malo apamwamba posachedwapa. Ndicho chifukwa chake timapereka mwayi wodziwa zotsatirazi.

Njira 2: Malo a Webupd8

Pali malo osungirako zachikhalidwe otchedwa Webupd8, omwe muli script yomwe ikufanizira Java yomwe ilipo tsopano ndi yomwe imapezeka pa webusaiti ya Oracle. Njira yowonjezera ili yothandiza kwa iwo amene akufuna kuyika 8board (zowonjezeka zopezeka ku malo olemba Oracle).

  1. Mu console, lowetsanisudo add-apt-repository ppa: webupd8team / java.
  2. Onetsetsani kuti muphatikize mawu anu achinsinsi.
  3. Onetsetsani kuwonjezerapo ntchito podalira Lowani.
  4. Yembekezani kuti fayiloyi ikhale yomaliza kuti musamatseke "Terminal".
  5. Sinthani zosungirako zosungidwa ndi lamulosudo apt-get update.
  6. Tsopano yonjezerani chojambulachi polembasudo apt-get kukhazikitsa oracle-java8-installer.
  7. Landirani mgwirizano wa layisensi kuti muzisintha phukusi.
  8. Vomerezani kuwonjezera mafayilo ku dongosolo.

Pamapeto pa ndondomekoyi, mutha kupezeka kuti gulu liyike mwatsatanetsatane -sudo apt-get kukhazikitsa oracle-java7-installerkumene java7 - Java version. Mwachitsanzo, mukhoza kulembajava9kapenajava11.

Lamulo lidzakuthandizani kuchotsa osayina osayenera.sudo apt-get kuchotsa oracle-java8-installerkumene java8 - Java version.

Njira 3: Yambitsani ndi Webupd8

Pamwamba, tinkakambirana za kukhazikitsa misonkhano pogwiritsa ntchito chikhomo cha Webupd8. Chifukwa cha malo omwewo, mungathe kusintha ma Java Java kwa atsopano pokhapokha pogwiritsa ntchito kufanizira.

  1. Bweretsani masitepe asanu oyambirira kuchokera ku malangizo apitayi, ngati simunachitepo izi.
  2. Lowani timusudo update-javandiyeno dinani Lowani.
  3. Gwiritsani ntchito lamulosudo apt-get install update-javakukhazikitsa zosintha ngati zipezeka.

Njira 4: Kuyika Buku

Mwina njira iyi ndi yovuta kwambiri mwa iwo omwe takambirana m'nkhani ino, koma idzapereka njira yofunikira ya Java popanda kugwiritsa ntchito zipangizo zapadera komanso zina zigawo zina. Kuti mukwaniritse ntchitoyi mufunikira osakayikira omwe alipo "Terminal".

  1. Pogwiritsa ntchito webusaitiyi, pitani ku tsamba lovomerezeka la Oracle kuti muzitsatira Java, pomwe mumasankha Sakanizani kapena sankhani china chilichonse chofunika.
  2. Pansi pali mapepala angapo ndi malaibulale. Tikukulimbikitsani kukopera zojambulazo. tar.gz.
  3. Pita ku foda ndi archive, dinani pa RMB ndikusankha "Zolemba".
  4. Kumbukirani malo a phukusi, chifukwa muyenera kupitako kudzera muzondomeko.
  5. Thamangani "Terminal" ndi kuchita lamulocd / nyumba / wosuta / fodakumene wosuta - dzina la munthu, ndi foda - dzina la foda yosungirako yosungirako.
  6. Pangani foda kuti mutulutse zolembazo. Kawirikawiri zigawo zonse zimayikidwa mu jvm. Kupanga bukhu lapangidwa mwa kulembasudo mkdir -p / usr / lib / jvm.
  7. Chotsani archive yomwe ilipo mu foda yolengedwasudo tar -xf jdk-11.0.2_linux-x64_bin.tar.gz -C / usr / lib / jvmkumene jdk-11.0.2_linux-x64_bin.tar.gz - dzina la archive.
  8. Kuti muwonjezere njira zamakono, muyenera kuika malamulo awa nthawi zonse:

    sudo update-alternatives --install / usr / bin / java java /usr/lib/jvm/jdk1.8.0/bin/java 1
    zowonjezera -zosintha / usr / bin / javac javac /usr/lib/jvm/jdk1.8.0/bin/javac 1
    sudo update-alternatives --install / usr / bin / javaws javaws /usr/lib/jvm/jdk1.8.0/bin/javaws 1

    Njira imodzi yosagwiritsira ntchito njira zingakhaleko, malingana ndi Java yomwe mumasankha.

  9. Zimangokhala zokonza njira iliyonse. Choyamba kuthamangasudo update-alternatives - chotsani java, pezani Java yoyenera, yitsimikizireni nambala yake ndi kulowetsamo.
  10. Bwerezani zomwezo ndisudo update-alternatives - chovala javac.
  11. Kenaka sungani njira yotsiriza kudutsazowonjezera zosinthika - njira zina zowonjezera.
  12. Onetsetsani zotsatira za kusinthako pofufuza ndondomeko ya Java (java -version).

Monga mukuonera, pali njira zambiri zowonjezeretsa Java m'dongosolo la Linux, kotero wosuta aliyense adzapeza njira yoyenera. Ngati mumagwiritsa ntchito njira yogawira komanso njira zomwe zimaperekedwa sizigwira ntchito, pendani mosamala zolakwika zomwe zasonyezedwa mu console ndipo mugwiritsire ntchito magwero ovomerezeka kuti athetse vutoli.