Ua ntej koj tuaj yeem tsim thiab hloov kho Java cov haujlwm, koj yuav xav tau Java Software Development Kit lossis Java software txhim kho cov cuab yeej. Cov cuab yeej no (paub tias yog Java SDK lossis JDK) tuaj yeem rub tawm dawb los ntawm Oracle lub vev xaib raws li cov ntawv teeb tsa ib zaug kom cov txheej txheem teeb tsa tuaj yeem ua raws sai thiab yooj yim. Kawm paub txoj hauv kev zoo tshaj plaws los rub tawm thiab teeb tsa Java software txhim kho cov cuab yeej ntawm lub Windows, MacOS, lossis Linux computer.
Kauj ruam
Ntu 1 ntawm 5: Rub tawm Java Software Development Kit
Kauj Ruam 1. Mus ntsib
Koj tuaj yeem rub tawm ib qho yooj yim Java Software Development Kit (JDK) cov ntaub ntawv teeb tsa rau Windows, MacOS, lossis Linux ua haujlwm ncaj qha los ntawm Oracle site.
Kauj Ruam 2. Nyem rau Rub lub pob hauv qab cov lus "JDK"
Ib nplooj ntawv tshiab yuav qhib thiab muaj ntau qhov kev xaiv rub tawm.
Kauj Ruam 3. Qhib nplooj ntawv mus rau qhov tseeb Java SE Kev Txhim Kho Khoom Siv version ntu
Nco ntsoov tias koj ib txwm khiav cov cuab yeej nrog qhov hloov kho tshiab kawg. Nplooj ntawv koj qhib yuav qhia ntau dua ib qho version kom ntseeg tau tias koj tau mloog zoo rau tus lej tso tawm.
Piv txwv, yog tias koj pom "JDK 8u101" thiab "8u102" xaiv, xaiv "8u102" xaiv
Kauj Ruam 4. Nyem lub pob xov tooj cua nyob ib sab ntawm "Txais Daim Ntawv Pom Zoo Daim Ntawv Pom Zoo"
Ua ntej rub tawm qhov txuas tuaj yeem nyem, koj yuav tsum pom zoo rau daim ntawv tso cai pom zoo. Qhov kev xaiv no yog hauv qab JDK tus lej xov tooj.
Kauj Ruam 5. Nkag mus lossis tsim tus as khauj tshiab
Ua ntej rub tawm cov ntawv rub tawm, koj yuav tsum tau nkag mus rau hauv koj tus lej Oracle. Yog tias koj twb muaj tus as khauj, nkag mus siv tus email chaw nyob thiab lub npe siv cuam tshuam nrog tus as khauj. Yog tsis yog, nyem " Tsim tus account "Thiab sau rau hauv daim ntawv tsim nyiaj.
Kauj Ruam 6. Nyem rau kab ntawv rub tawm raws li lub computer operating system
Koj tuaj yeem rub tawm Java SE JDK rau Windows, MacOS, lossis Linux khoos phis tawj. Thaum qhov txuas tau nyem, ua raws cov lus qhia ntawm lub vijtsam kom xaiv qhov chaw rau rub tawm kom raug cawm hauv koj lub computer thiab pib rub tawm cov ntawv.
Ntu 2 ntawm 5: Txhim Kho Java SE Kev Txhim Kho Khoom Siv ntawm Windows Computer
Kauj Ruam 1. Nyem ob npaug rau JDK cov ntawv teeb tsa
Thaum cov ntaub ntawv teeb tsa Java Software Development Kit tau ua tiav rub tawm, mus rau hauv phau ntawv teev npe uas tau xaiv yav dhau los los ua cov ntawv. Los ntawm lub neej ntawd, koj tuaj yeem pom cov ntawv rub tawm hauv "Downloads" nplaub tshev. Koj tseem tuaj yeem qhib cov ntawv teeb tsa ncaj qha los ntawm lub vev xaib.
Java Software Development Kit teeb tsa lub npe file yog "dk-13.0.2_windows-x64_bin.exe" lossis "jdk-13.0.2_windows-x64_bin.zip". Yog tias koj tab tom rub tawm ZIP cov ntaub ntawv, koj yuav tsum rho tawm cov ntsiab lus ua ntej
Kauj Ruam 2. Tso daim ntawv thov hloov pauv rau lub khoos phis tawj
Tej zaum koj yuav raug nug kom tso cai rau nruab JDK, nyob ntawm qhov version ntawm Windows koj tab tom khiav. Nyem "Yog" lossis "OK" thaum hais kom ua. Tom qab ntawd, JDK teeb tsa kev txais tos nplooj ntawv yuav tshwm.
Kauj Ruam 3. Nyem Next mus txuas ntxiv
Koj yuav tsum tau hla cov nplooj ntawv uas yuav coj koj los ntawm JDK txheej txheem teeb tsa.
Kauj Ruam 4. Nyem Tom ntej no los lees txais lub teeb tsa teeb tsa ua ntej
Cov txheej txheem teeb tsa JDK yuav pib thiab yuav siv sijhawm li ob peb feeb, nyob ntawm lub khoos phis tawj. Ib txoj kab kev vam meej xiav yuav raug tso tawm kom pom qhov kev nce qib ntawm kev teeb tsa.
Kauj Ruam 5. Nyem Kaw thaum qhov kev teeb tsa tiav
Lub pob no yuav tsis tshwm kom txog thaum kev teeb tsa tiav.
Kauj Ruam 6. Qhib "Windows Advanced System Settings" ntu ntawm Tswj Vaj Huam Sib Luag
Ua raws cov theem no txhawm rau nkag mus rau "Advanced System Settings" hauv Tswj Vaj Huam Sib Luag:
- Nyem rau Windows "Pib" ntawv qhia zaub mov thiab ntaus hauv Tswj Vaj Huam Sib Luag.
- Nyem "Tswj Vaj Huam Sib Luag".
- Xaiv " System thiab Security ”.
- Nyem " Txheej txheem ”.
- Nyem " Advanced System Settings "Hauv vaj huam sib luag ntawm sab laug.
Kauj Ruam 7. Mus rau Advanced tab
Koj tuaj yeem pom ntau ntu los kho ntau yam kev teeb tsa system.
Kauj Ruam 8. Nyem rau ntawm Environment Variables khawm
Lub npov lus sib tham tshiab yuav qhia ob ntu sib txawv, ib qho rau "Tus Qauv Siv" (teeb tsa tshwj xeeb rau koj tus lej siv) thiab ib qho rau ntau qhov system teeb tsa ("System Variables").
Kauj Ruam 9. Muab ob npaug rau Txoj Kev sib txawv hauv qab "System Variables"
Tam sim no, koj tuaj yeem ntxiv qhov hloov pauv tshiab. Ua raws cov lus qhia no raws li koj tsis muaj txoj hauv kev xaiv los rov ua qhov haujlwm.
Kauj Ruam 10. Kho qhov hloov pauv ib puag ncig (rau Windows 10 nkaus xwb)
Cov kauj ruam no tsuas yog siv rau Windows 10 cov neeg siv.
- Nyem " Tshiab ”.
- Ntaus hauv c: / Program Files / Java / jdk1.8.0_xx / bin (hloov "8.0_xx" nrog tus lej lej ntawm JDK koj tau teeb tsa).
- Nyem lub pob " Tsiv Mus "Kom txog thaum qhov chaw nyob uas koj ntaus ntawv yog nyob rau saum cov npe.
- Nyem " OK ”.
Kauj Ruam 11. Teev qhov sib txawv (rau cov laus dua ntawm Windows nkaus xwb)
Hla cov kauj ruam no yog tias koj siv Windows 10. Koj tuaj yeem pom "Kho Qhov Hloov Pauv Hloov pauv" qhov rai. Ua cov kev hloov hauv qab no rau kab ntawv "Hloov pauv tus nqi" nkaus xwb. Txawm li cas los xij, tsis txhob tshem tawm cov ntawv nkag lossis hloov pauv uas twb muaj lawm:
- Ntaus hauv C: / Program Files / Java / jdk1.8.0_xx / bin (hloov qhov "8.0_xx" ntu nrog tus lej tsim nyog) ua ntej lwm cov npe.
- Ntxig ib semicolon (;) tom kawg ntawm qhov nkag nkag (piv txwv li C: / Program Files Java Java jdk1.8.0_xx / bin;).
- Nco ntsoov tias tsis muaj chaw nyob ua ntej thiab tom qab lub semicolon. Zuag qhia tag nrho, kab nkag yuav tsum zoo li no: C: / Program Files / Java / jdk1.8.0_2 / bin; C: / Program Files / Intel / xxx
- Nyem " OK ”.
- Nyem " OK "Kom txog thaum txhua lub qhov rais qhib raug kaw.
Kauj Ruam 12. Qhib Command Prompt
Ua raws cov theem no kom qhib Command Prompt:
- Txoj cai-nias lub Windows "Pib" ntawv qhia zaub mov thiab ntaus cmd.
- Nyem rau "Command Prompt" icon.
Kauj Ruam 13. Ntaus txoj hauv kev thiab nias Enter
Koj tuaj yeem pom tag nrho qhov chaw nyob ntawm JDK uas tau nkag yav tas los.
Kauj Ruam 14. Ntaus java –version thiab nias Enter
Qhov teeb tsa JDK version yuav tshwm rau ntawm qhov screen.
Yog tias ob qhov kev ntsuas no ua tiav ntawm Kev Hais Kom Kom Rov Qab tsis muaj qhov tshwm sim, koj yuav xav tau thauj khoom ib puag ncig tshiab los ntawm kev rov pib kho lub computer
Ntu 3 ntawm 5: Txhim Kho Java SE Development Kit ntawm MacOS
Kauj Ruam 1. Nyem ob npaug rau rub tawm cov ntawv rub tawm
Thaum cov ntaub ntawv teeb tsa Java Software Development Kit tau ua tiav rub tawm, ob npaug nias rau cov ntawv hauv "Downloads" qhov rai hauv koj tus browser lossis Finder.
Kauj ruam 2. Qhib cov ntawv rub tawm
Koj tuaj yeem pom cov ntawv hauv "Downloads" nplaub tshev lossis hauv koj tus browser. Cov ntaub ntawv no muaj npe "jdk-13.0.2_osx-x64_bin.dmg" (lossis qee yam zoo sib xws).
Kauj Ruam 3. Ob npaug nias lub pob icon kom ua tiav kev teeb tsa
Lub cim no zoo li lub thawv qhib. Lub qhov rai teeb tsa JDK yuav khiav.
Kauj Ruam 4. Nyem Mus Ntxiv ntawm qhov qhib qhov rai
Koj yuav pom qhov "Installation Type" window tom qab ntawd.
Yog tias koj pom lub qhov rai nrog cov lus "Xaiv Lub Hom Phiaj" tom qab txhaj lub pob "Txuas ntxiv", xaiv "Nruab rau txhua tus neeg siv lub khoos phis tawj no". Tsis yog txhua tus neeg siv tuaj yeem pom lub qhov rais. Tom qab ntawd, nyem " Txuas ntxiv ”.
Kauj Ruam 5. Nyem Nruab
Koj yuav pom lub qhov rai nrog cov lus "Installer tab tom sim teeb tsa software tshiab. Ntaus koj tus password kom tso cai rau qhov no ".
Kauj Ruam 6. Nkag mus rau lub khoos phis tawj ua tus tswj hwm
Ntaus tus username thiab password rau tus thawj tswj hwm tus account hauv cov teb uas tau muab.
Kauj Ruam 7. Nyem “Nruab Software”
Cov txheej txheem teeb tsa yuav siv ob peb feeb, nyob ntawm qhov nrawm ntawm lub khoos phis tawj. Thaum lub qhov rai lees paub tshwm, koj tuaj yeem kaw nws.
Kauj Ruam 8. Qhib daim ntawv “Applications” hauv computer
Koj yuav tsum tau ua qhov kev sim nrawm ntawm Terminal kom paub tseeb tias qhov program teeb tsa ua tiav. Nkag mus rau Terminal cov phiaj xwm khaws cia cov ntawv los ntawm txhaj "Mus" cov ntawv qhia zaub mov thiab xaiv "Cov Ntawv Thov".
Kauj Ruam 9. Qhib daim ntawv “Utilities”
Hauv daim nplaub tshev no, koj tuaj yeem pom cov npe khoom siv hluav taws xob.
Kauj ruam 10. Nyem ob npaug rau "Terminal" app
Tom qab ntawd, koj yuav pom lub qhov rai kab hais kom ua.
Kauj Ruam 11. Ntaus javac -version thiab nias Rov qab tseem ceeb
Hauv qab kab hais kom ua, koj tuaj yeem pom tus lej naj npawb ntawm JDK teeb tsa (piv txwv li "1.8.0.1"). Qhov no txhais tau tias txoj haujlwm tau teeb tsa tiav thiab koj tuaj yeem ua tus lej.
Thaum txoj haujlwm tau lees paub tias tau teeb tsa ua tiav, koj tuaj yeem tshem tawm cov ntawv rub tawm DMG yav dhau los txhawm rau txuag chaw ntawm koj lub hard drive
Ntu 4 ntawm 5: Txhim Kho Java SE Cov Khoom Txhim Kho los ntawm Archive ntawm Linux lossis Solaris Computer
Kauj Ruam 1. Qhib Terminal Terminal
Yog tias koj twb tau rub tawm JDK tarball cov ntaub ntawv khaws cia (piv txwv li "jdk-13.0.2_linux-x64_bin.tar.gz" lossis cov ntawv zoo sib xws), ua tiav kev teeb tsa los ntawm kev ua raws li txoj hauv kev no.
- Txog txoj hauv kev no, nws tau kwv yees tias koj nkag siab siv qhov yooj yim Unix plhaub lus txib.
- Yog tias koj rub tawm cov ntawv.rpm pob ntawv, thiab tsis yog tarball cov ntaub ntawv khaws cia, nyeem txoj hauv kev rau txhim kho JDK los ntawm pob ntawv ntawm lub khoos phis tawj Linux.
Kauj Ruam 2. Mus rau phau ntawv teev npe uas koj xav teeb tsa JDK
Koj tuaj yeem teeb tsa JDK hauv txhua phau ntawv teev npe, tsuav koj tau sau ntawv tso cai. Nco ntsoov tias tsuas yog tus neeg siv hauv paus tuaj yeem teeb tsa JDK rau hauv cov npe kab ke.
Kauj Ruam 3. Siv cov lus txib mv kom txav cov ntaub ntawv khaws cia mus rau phau ntawv qhib tam sim no
Nrog cov lus txib no, koj tuaj yeem txav cov ntaub ntawv mus rau cov npe tam sim no.
Kauj Ruam 4. Muab cov ntaub ntawv khaws tseg thiab teeb tsa JDK
Cov lus txib siv yuav nyob ntawm qhov kev ua haujlwm (thiab rau Solaris, hom ua haujlwm). Thaum teeb tsa tiav, cov npe tshiab npe "jdk" yuav raug tsim hauv cov npe tseem ceeb tam sim no nkag mus.
- Linux: tar zxvf jdk-7u-linux-i586.tar.gz
- Solaris (SPARC): gzip -dc jdk-8uversion-solaris-sparcv9.tar.gz
- Solaris (x64/EM64T): gzip -dc jdk-8uversion-solaris-x64.tar.gz
Kauj Ruam 5. Rho tawm *.tar.gz ntawv
Siv rm hais kom tshem cov ntaub ntawv khaws cia yog tias koj xav txuag chaw cia.
Ntu 5 ntawm 5: Txhim Kho Java SE Cov Khoom Siv Txhim Kho los ntawm Cov Ntaub Ntawv Pob ntawm Linux Computer
Kauj Ruam 1. Nkag mus lossis siv tus neeg siv hauv paus
Yog tias koj siv RPM-based Linux kev ua haujlwm (piv txwv li SuSE lossis RedHat), koj tuaj yeem nruab Java Cov Khoom Txhim Kho los ntawm pob RPM. Xyuas kom koj rub cov ntaub ntawv tsim nyog. Koj kuj tseem yuav tsum siv cov lus txib "su rau hauv paus" (su hauv paus) kom tau txais kev tso cai kom tsim nyog los teeb tsa cov pob khoom siv.
- Nco ntsoov tias cov ntawv rub tawm muaj ".rpm" txuas ntxiv
- Txog txoj hauv kev no, nws tau kwv yees tias koj nkag siab siv qhov yooj yim Unix plhaub lus txib.
Kauj ruam 2. Uninstall qub JDK pob
Cov lus txib uas yuav tsum tau ua yog rpm -e
Kauj Ruam 3. Txhim kho pob JDK tshiab
Koj yuav tsum rov siv lo lus "rpm", tab sis lub sijhawm no muaj qhov sib txawv lossis chij txawv:
rpm -ivh jdk-7u-linux-x64.rpm (hloov "jdk-7u-linux-x64.rpm" nrog lub npe pob los siv)
Kauj Ruam 4. Rho tawm cov ntawv.rpm
Thaum pob tau ua tiav kev teeb tsa, koj yuav raug coj rov qab mus rau qhov hais kom ua kab qhov rai. Yog tias koj xav txuag chaw ntawm koj lub computer, rho tawm cov ntawv rub tawm pob nrog rm hais kom ua.