Yuav Ua Li Cas Rau Nruab Tus Compiler

Cov txheej txheem:

Yuav Ua Li Cas Rau Nruab Tus Compiler
Yuav Ua Li Cas Rau Nruab Tus Compiler

Video: Yuav Ua Li Cas Rau Nruab Tus Compiler

Video: Yuav Ua Li Cas Rau Nruab Tus Compiler
Video: Yuav ua li cas By Nhia Lor [full version] 2024, Kaum ib hlis
Anonim

Koj tuaj yeem ua hom lus java rau hauv ib txwm siv Notepad. Muaj tseeb, yuav tsis muaj cov lus qhia ntawm cov ib puag ncig hais txog qhov yuam kev lossis chav faus, yuav tsis muaj qhov zoo nkauj thiab yooj yim ntawm cov kev cai. Ib qho ntxiv, txhawm rau sau cov cai koj sau ntawv, koj xav tau cov ntawv sau suav nrog Java Tsim Cov Khoom Siv.

Yuav ua li cas rau nruab tus compiler
Yuav ua li cas rau nruab tus compiler

Nws yog qhov tsim nyog

Java Kev Tsim Kho Cov Khoom Siv

Cov Lus Qhia

Kauj ruam 1

Rub tawm Java Cov Khoom Siv Tsim Tawm los ntawm tus tsim tawm xaib yog tias koj tseem tsis tau siv. Nruab qhov kev pab cuam los ntawm ob npaug nias rau lub installation cov ntaub ntawv. Txoj haujlwm muab faib dawb, thiab koj tsis tas yuav them nyiaj rau siv nws. Nruab ntawm lub chaw tsav tsheb ntawm lub computer ntiag tug. Raws li txoj cai, xws li software yuav tsum muab nruab rau hauv qhov system muab faib, vim nws yog cov khoom siv hluav taws xob.

Kauj ruam 2

Teeb tsa kev hloov pauv ib puag ncig. Lub operating system yuav tsum tau qhia kom meej qhov twg los pib lub tshuab java los ntawm. Txhawm rau ua qhov no, hauv cov yam ntxwv ntawm lub khoos phis tawm, xaiv "Advanced Settings", thiab tom qab ntawd - "Ib puag ncig hloov". Ntxiv rau qhov kawg ntawm txoj kev kuj sib txawv thiab txoj kab rau JDK ntsia, mus rau hauv lub tais ceev tseg. Koj tuaj yeem luam tawm nws nkaus los ntawm qhov chaw nyob ntawm Daim Ntawv Qhia Cov Ntaub Ntawv thiab muab tshuaj txhuam nws mus rau hauv cov chaw sib txawv, tshem cov slash ntxiv tom kawg.

Kauj ruam 3

Txheeb khiav lub compiler los ntawm cov kab hais kom ua. Qhib cov kab hais kom ua kab hluav taws xob los ntawm cov pib tshuab raj. Mus los ntawm cov kab hais kom ua rau lub nplaub tshev nrog koj cov ntawv sau - rau qhov chaw hauv chav kawm loj nrog cov haujlwm tseem ceeb yog khaws cia. Sau xaj javac [filename].java

Kauj ruam 4

Yog tias muaj qhov yuam kev thaum lub sijhawm ua ke, lub compiler yuav tsim tawm lawv mus rau cov kab ntawv xa ua kab lus nrog cov kab lej uas qhov yuam kev tshwm sim. Rau cov phiaj xwm me, qhov kev ua haujlwm dhau los thiab kev sim yog qhov zoo, tab sis rau cov kev pabcuam loj nws yog qhov zoo dua rau tinker nrog cov chaw tsim khoom - JBeans lossis Eclipse. Yog tias koj yog tus pib programmer, koj tuaj yeem siv Java Development Kit software rau kev cob qhia, thiab tom qab ntawd ua haujlwm nrog cov haujlwm nyuaj ntxiv uas muab ntau cov haujlwm, tab sis xav tau kev txawj los ua haujlwm nrog cov kab ke no.

Pom zoo: