Puas yog JRE thiab JDK tib yam?
Puas yog JRE thiab JDK tib yam?

Video: Puas yog JRE thiab JDK tib yam?

Video: Puas yog JRE thiab JDK tib yam?
Video: Da Vang - Puas Yog Nyuab2 Koj (nkauj tawm tshiab 2021) 2024, Hlis ntuj nqeg
Anonim

JRE yog lub hauv paus Java Virtual Machine qhov twg koj Java cov kev pab cuam khiav rau. Nws kuj suav nrog browserplugins rau Applet ua tiav. JDK yog lub tshuab paub daws teeb. Qhov txawv ntawm JDK thiab JRE yog tias JDK yog cov khoom siv txhim kho software rau java ua thaum JRE yog qhov chaw uas koj khiav koj cov kev pab cuam.

Hauv qhov no, JRE puas suav nrog JDK?

JDK yog superset ntawm JRE , thiab muaj txhua yam uas nyob hauv JRE , ntxiv rau cov cuab yeej xws li compilersand debuggers tsim nyog rau kev tsim applets thiab daim ntawv thov. JRE muab cov tsev qiv ntawv, cov Java Virtual Machine (JVM), thiab lwm yam khoom siv los khiav applets thiab daim ntawv thov sau rau hauv Java programming lus.

Ib yam li ntawd, kuv puas xav tau JRE lossis JDK rau dab noj hnub? Tsis hais txog ntawm koj lub operating system, koj yuav xav tau rau nruab ib co Java virtual tshuab (JVM). Koj tuaj yeem nruab Java Runtime Ib puag ncig ( JRE ), lossis JavaDevelopment Kit ( JDK ), nyob ntawm seb koj xav tau dab tsi ua nrog Dab tuag . Yog tias koj xav siv Dab tuag rau Java txoj kev loj hlob, ces koj yuav tsum nruab a JDK.

Hais txog qhov no, kuv puas xav tau JDK lossis JRE?

Maven xav tau Dab noj hnub siv a JDK , i.e. Java Cov khoom siv txhim kho, tsis yog a Java RuntimeEnvironment ( JRE ). Qhov txawv tseem ceeb yog tias a JDK kuj muaj a Java Compiler thiab lwm yam cuab yeej los tsim Java Code, thaum lub JRE tsuas muaj peev xwm khiav compiled Java daim ntawv thov.

JDK JRE JVM thiab JIT yog dab tsi?

Java Virtual Machine ( JVM ) yog ib lub tshuab computer abstract. Java Development Kit ( JDK ) muaj JRE nrog rau ntau yam kev txhim kho cov cuab yeej xws li Javalibraries, Java qhov chaw compilers, Java debuggers, bundling thiab xa cov cuab yeej. Just In Time compiler ( JIT ) yog khiav tom qab qhov kev pab cuam tau pib executing, ntawm ya.

Pom zoo: