Ob lub versions ntawm Java puas tuaj yeem ntsia tau?
Ob lub versions ntawm Java puas tuaj yeem ntsia tau?

Video: Ob lub versions ntawm Java puas tuaj yeem ntsia tau?

Video: Ob lub versions ntawm Java puas tuaj yeem ntsia tau?
Video: Лучшие 15 часов Casio G Shock до $ 500 | Лучшие часы G-Shock ниже $ 500... 2024, Kaum ib hlis
Anonim

Tau kawg koj ua tau siv ntau yam versions ntawm Java hauv qab Qhov rai thiab txawv daim ntawv thov ua tau siv txawv Java versions . Kab lus no piav qhia yuav ua li cas khiav ntau yam versions ntawm Java ib sab ntawm ib sab Qhov rai tshuab. Ua ntej tshaj plaws, qhov kev txiav txim uas koj nruab tus Java Runtime Environments tseem ceeb heev.

Tsis tas li ntawd, kuv yuav hloov li cas ntawm cov versions ntawm Java?

Nco ntsoov tias koj muab tus nqi tsim nyog JAVA_HOME hauv cov ntaub ntawv batch, raws li koj qhov Java kev teeb tsa. Thaum twg koj xav tau hloov ntawm Java versions , tsuas yog khiav cov ntaub ntawv batch ntsig txog thiab koj ua tiav. Nco tseg- JAVA_HOME thiab txoj hauv kev mus java ua yuav tsum ib txwm xa mus rau tib yam nkaus version ntawm JDK.

Tsis tas li ntawd, kuv puas tuaj yeem muaj ob versions ntawm Eclipse ntsia? Yog lawm, Dab tuag kev txhawb nqa ntau nruab. Raws li lub neej ntawd Dab tuag installs nyob rau hauv ib phau ntawv nrog tag nrho cov kev xaiv, configs, thiab lwm yam nyob rau hauv txawv subdirectories. Qhov teeb meem nkaus xwb yuav yog nrog kev xaiv kom raug Dab ntxwg nyoog nruab rau muab qhov project (piv txwv li qhib C ++ project hauv Dab tuag rau php yam tsis muaj C ++ Cheebtsam).

Raws li txoj cai, kuv puas tuaj yeem muaj ob versions ntawm Java ntawm kuv Mac?

Cov txoj kev huv tshaj los tswj ntau java versions ntawm Mac yog to siv Homebrew. Thiab hauv Homebrew, siv : homebrew-cask rau nruab cov versions ntawm java . jenv tswj tus ntsia java versions.

Kuv puas tuaj yeem nruab ntau hom JDK?

Yog, koj ua tau . Tsuas yog siv cov npe tag nrho thaum hu ua javac, java ua , thiab lwm yam los yog teeb tsa koj qhov chaw ib puag ncig hloov pauv mus rau taw tes rau qhov tsim nyog jdk ua /bin qhov chaw. IDEs feem ntau tso cai rau kev txhais ntau JDKs/JREs, thiab koj ua tau xaiv qhov twg los siv rau txhua qhov project. Yog, koj tuaj yeem nruab raws li ntau Java SDKs raws li koj xav tau.

Pom zoo: