Cov txheej txheem:

Kuv yuav ua li cas rau nruab Java ntawm 32 ntsis Linux?
Kuv yuav ua li cas rau nruab Java ntawm 32 ntsis Linux?

Video: Kuv yuav ua li cas rau nruab Java ntawm 32 ntsis Linux?

Video: Kuv yuav ua li cas rau nruab Java ntawm 32 ntsis Linux?
Video: Kev hlub tu hnub koj ntsib nws. 10/9/2017 2024, Kaum ib hlis
Anonim

Java rau Linux Platforms

  1. Hloov mus rau cov npe uas koj xav tau nruab . Hom: cd directory_path_name.
  2. Txav mus. tar. gz archive binary rau cov npe tam sim no.
  3. Unpack lub tarball thiab nruab Java . ua zxvf jre ua -8u73- linux -i586.tar.gz. Cov Java cov ntaub ntawv yog ntsia hauv ib phau ntawv hu ua jre1.
  4. Rho tawm cov. tar.

Tom qab ntawd, qhov twg Java yuav tsum tau nruab rau Linux?

8.0_73 ib. Nco ntsoov txog kev nkag hauv paus: To nruab Java nyob rau hauv ib qhov system-wide qhov chaw xws li /usr/local, koj yuav tsum ID nkag mus raws li tus neeg siv hauv paus kom tau txais kev tso cai tsim nyog. Yog tias koj tsis muaj lub hauv paus nkag, nruab Java nyob rau hauv koj lub tsev directory los yog ib tug subdirectory uas koj tau sau ntawv tso cai.

Tsis tas li ntawd, kuv yuav nruab thiab khiav Java li cas? 1. Yuav ua li cas rau nruab JDK ntawm Windows

  1. Kauj ruam 0: Un-Install Older Version(s) ntawm JDK/JRE.
  2. Kauj ruam 1: Download JDK.
  3. Kauj ruam 2: Nruab JDK.
  4. Kauj Ruam 3: suav nrog JDK's "bin" Directory hauv PATH.
  5. Kauj ruam 4: Txheeb xyuas qhov kev teeb tsa JDK.
  6. Kauj ruam 5: Sau qhov Hello-World Java Program.
  7. Kauj ruam 6: Sau thiab khiav qhov Hello-World Java Program.

Tsis tas li ntawd, kuv yuav ua li cas rau nruab Java ntawm Ubuntu?

Yuav ua li cas rau nruab Java (lub neej ntawd JDK) ntawm Ubuntu siv apt-get

  1. Kauj ruam 1: Hloov kho Ubuntu. Thawj qhov koj yuav tsum ua yog hloov kho koj lub cev. Koj tuaj yeem ua li ntawd los ntawm kev khiav cov lus txib hauv qab no: apt-tau hloov tshiab && apt-tau hloov tshiab.
  2. Kauj ruam 2: Nruab lub neej ntawd JDK. Khiav cov lus txib hauv qab no: apt-tau nruab default-jdk.

Kuv yuav paub li cas yog Java tau nruab rau Linux?

Txheej txheem

  1. Qhib Linux hais kom ua.
  2. Nkag mus rau qhov hais kom ua java -version.
  3. Yog tias Java tau nruab rau hauv koj lub cev, koj pom Java ntsia teb. Txheeb xyuas tus lej version hauv cov lus.
  4. Yog tias Java tsis tau nruab rau hauv koj lub cev, lossis lub version ntawm Java yog ntxov dua 1.6, siv YaST los nruab ib qho sib xws.

Pom zoo: