Cov txheej txheem:

Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Pib: 11 Kauj Ruam
Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Pib: 11 Kauj Ruam

Video: Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Pib: 11 Kauj Ruam

Video: Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Pib: 11 Kauj Ruam
Video: Tau kev seev vim ruam tsis deev. 9/28/2017 2024, Kaum ib hlis
Anonim
Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Cov Pib
Yuav ua li cas ntshuam Java Cov Haujlwm rau Hauv Dab Neeg rau Cov Pib

Taw qhia

Cov lus qhia hauv qab no muab cov lus qhia ib kauj ruam rau kev txhim kho Java cov phiaj xwm mus rau lub khoos phis tawj software Eclipse. Java cov haujlwm muaj tag nrho cov cai, cuam tshuam, thiab cov ntaub ntawv tsim nyog rau tsim Java program. Cov haujlwm no tau muab tso rau hauv cov npe chaw ua haujlwm tshwj xeeb. Thaum txhim kho cov ntaub ntawv no los ntawm lwm qhov chaw, lawv yuav tsum tau muab tso kom raug hauv cov ntaub ntawv ntawm lub khoos phis tawj kom nyob ntawm Eclipse kom raug. Cov txheej txheem qhia yooj yim no lub hom phiaj los pab cov pib ua txoj haujlwm no.

Tsis lees paub!

Cov txheej txheem qhia siv Java project algs4 ua piv txwv. Qhov haujlwm Java tshwj xeeb no tau yoog los ntawm phau ntawv Algorithms los ntawm Robert Sedgewick. Qhov no muaj cov piv txwv thiab cov ntaub ntawv xa mus uas nrog rau phau ntawv cov ntaub ntawv. Ib qho ntxiv, cov piv txwv hauv qab no siv PC, txawm hais tias tus txheej txheem yuav luag zoo ib yam ntawm Mac.

Kauj ruam 1: Tau txais Java Cov Ntaub Ntawv Koj Xav Txhim Kho

Tau txais Java Cov Ntaub Ntawv Koj Xav Txhim Kho
Tau txais Java Cov Ntaub Ntawv Koj Xav Txhim Kho

Tau txais Java cov ntaub ntawv koj xav kom nruab rau dab noj hnub los ntawm rub lawv los ntawm lawv qhov chaw. Cov ntaub ntawv yuav nyob hauv zip file.

Kauj ruam 2: Tsim daim nplaub tshev tshiab

Tsim daim nplaub tshev tshiab
Tsim daim nplaub tshev tshiab

Tsim daim nplaub tshev tshiab ntawm koj lub cuab yeej rau Java cov ntaub ntawv los ntawm txoj nyem thiab mus rau:

Tshiab> Ntawv tais ceev tseg

Cov npe chaw ua haujlwm nplaub tshev thiab nws txoj haujlwm Java subfolders yuav muab tso rau hauv qhov chaw no

Kauj Ruam 3: Tshem Tawm Txhua Cov Ntsiab Lus ntawm Zip Folder

Luam tawm Txhua Cov Ntsiab Lus ntawm Zip Folder
Luam tawm Txhua Cov Ntsiab Lus ntawm Zip Folder
Tshem tawm tag nrho Cov Ntsiab Lus ntawm Zip Folder
Tshem tawm tag nrho Cov Ntsiab Lus ntawm Zip Folder

Luam cov ntsiab lus ntawm rub tawm cov ntawv zip rau hauv daim nplaub tshev tsim hauv Kauj Ruam #2. Txoj cai nyem thiab nyem "Extract All …," xaiv txoj hauv kev kom raug, thiab tom qab ntawd nias "Extract".

Kauj Ruam 4: Pib Eclipse

Pib Eclipse
Pib Eclipse
Pib Eclipse
Pib Eclipse

Thaum cov ntaub ntawv raug rub tawm kom raug thiab muab tso rau hauv daim nplaub tshev nkag tau yooj yim, pib Eclipse.

Kev tsis lees paub: Dab noj hnub yog software nyuaj uas feem ntau siv ob peb feeb los pib.

Kauj Ruam 5: Xaiv Cov Ntawv Teev Npe Ua Haujlwm

Xaiv Cov Chaw Haujlwm Ua Haujlwm
Xaiv Cov Chaw Haujlwm Ua Haujlwm
Xaiv Cov Chaw Haujlwm Ua Haujlwm
Xaiv Cov Chaw Haujlwm Ua Haujlwm

Dab noj hnub yuav ua rau tus neeg siv xaiv cov npe chaw ua haujlwm. Xaiv lub nplaub tshev uas sawv cev rau qhov chaw ua haujlwm raug los ntawm kev xaiv "Xauj" thiab tshawb rau nws. Hauv qhov piv txwv, daim nplaub tshev muaj npe hu ua chaw ua haujlwm.

Kauj Ruam 6: Tua Eclipse

Thaum xaiv cov npe chaw ua haujlwm, nyem "Launch" thiab Dab noj hnub yuav pib thauj khoom hauv qhov chaw no.

Kauj Ruam 7: Tsim Txoj Haujlwm Tshiab hauv Cov Haujlwm Ua Haujlwm

Tsim Ib Txoj Haujlwm Tshiab hauv Cov Haujlwm Sau Npe
Tsim Ib Txoj Haujlwm Tshiab hauv Cov Haujlwm Sau Npe

Tsim txoj haujlwm tshiab hauv cov npe chaw ua haujlwm los ntawm kev mus rau:

Cov ntaub ntawv> Tshiab> Java Project

Kauj Ruam 8: Txheeb Xyuas thiab Ntaus Hauv Java Project Npe

Txheeb xyuas thiab ntaus hauv Java Project Lub Npe
Txheeb xyuas thiab ntaus hauv Java Project Lub Npe

Txheeb xyuas Java txoj haujlwm subfolder koj xav import. Hauv qhov no, txoj haujlwm muaj npe algs4. Ntaus lub npe ntawm daim nplaub tshev no hauv qab "Project Name".

Kauj Ruam 9: Kho Kev Ua Haujlwm Ib puag ncig

Kho Kev Ua Haujlwm Ib puag ncig
Kho Kev Ua Haujlwm Ib puag ncig

Ua kom ntseeg tau tias qhov ua tiav ib puag ncig tsim nyog rau cov ntaub ntawv koj tau ntshuam. Hauv qhov no, JavaSE-1.8 yog JRE (Java Runtime Environment) xav tau.

Kauj ruam 10: Ua tiav

Tiav
Tiav

Yog tias daim ntawv hauv daim duab 10 raug qhia, nyem "Ua tiav" los tsim qhov project. Yog tias tsis yog, rov ua cov txheej txheem, rov xyuas ob zaug ib zaug.

Kauj Ruam 11: Xaus

Nrog koj zoo siab! Tam sim no cov ntaub ntawv Java yuav tsum raug teeb tsa kom raug thiab npaj siv.

Nws yog ib qho tseem ceeb kom tswj hwm lub koom haum ntawm cov ntawv tais ceev tseg thiab cov ntawv subfolders zoo li txhawm rau nkag mus rau cov cai no txhua lub sijhawm Eclipse tau pib.

Cov txheej txheem no tau muab cov lus qhia ib kauj ruam rau kev txhim kho Java cov phiaj xwm mus rau lub khoos phis tawj software Eclipse. Txaus siab rau lub cajmeem!

Pom zoo: