Cov txheej txheem:

Nws puas tsim nyog los teeb tsa Java_home?
Nws puas tsim nyog los teeb tsa Java_home?

Video: Nws puas tsim nyog los teeb tsa Java_home?

Video: Nws puas tsim nyog los teeb tsa Java_home?
Video: ib sim cas tsis tsim nyog tsom xyooj 2022 2024, Kaum ib hlis
Anonim

JAVA_HOME yog xav tau rau kev khiav Tomcat thiab ntau lwm yam kev siv Java. Koj tuaj yeem xaiv tau teeb JRE_HOME mus rau JRE puag directory (piv txwv li, "c:Program Filesjavajre7"). Nyeem tshooj saum toj no seb yuav ua li cas teeb lossis hloov ib puag ncig hloov pauv (hauv Windows, Mac thiab Unixes).

Xav txog qhov no, kuv puas yuav tsum teeb Java_home?

Koj yuav tsum xyuas kom meej tias qhov tshwj xeeb Java koj ua kom phim qhov chaw JAVA_HOME . Koj kuj yuav tau yuav tsum tso JAVA_HOME nyob rau hauv thaum ntxov ntawm koj txoj kev yog li ntawd yog hais tias lub java.exe spawns ib daim qauv ntawm nws tus kheej (piv txwv li rau compile ib tug JSP) nws picks li txoj cai version. JAVA_HOME yog ib puag ncig hloov pauv.

Qhov thib ob, vim li cas peb thiaj li yuav tsum tau teeb tsa txoj hauv kev rau Java? Cov kev is qhov tseem ceeb tshaj plaws ib puag ncig sib txawv ntawm cov Java ib puag ncig uas yog siv los nrhiav tus JDK pob khoom siv los hloov cov java ua qhov chaws mus rau hauv lub tshuab-nyeem tau binary hom ntawv. Cov cuab yeej zoo li javac thiab java ua tuaj yeem siv los ntawm kev teeb tsa txoj kev.

Raws li txoj cai, kuv yuav tsum teeb Java_home qhov twg?

Txhawm rau teeb tsa JAVA_HOME, ua cov hauv qab no:

  1. Right click My Computer thiab xaiv Properties.
  2. Ntawm Advanced tab, xaiv Environment Variables, thiab tom qab ntawd kho JAVA_HOME kom taw tes rau qhov chaw JDK software nyob, piv txwv li, C:Program FilesJavajdk1. 6.0_02.

Qhov txawv ntawm txoj kev thiab Java_home yog dab tsi?

- JAVA_HOME : yuav tsum taw tes rau installation directory ntawm JDK. - JRE_HOME: yuav tsum taw tes rau kev teeb tsa ntawm JRE. - CLASSPATH: muaj cov tsev qiv ntawv txoj kev uas JVM yuav nrhiav. - PATH : ib puag ncig hloov pauv ntawm Windows.

Pom zoo: