Txhawm rau teeb tsa JAVA_HOME, ua cov hauv qab no: Txoj nyem rau Kuv Lub Computer thiab xaiv Cov Khoom Siv. 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 Files\Java\jdk1.
JAVA_HOME ib puag ncig hloov pauv yog dab tsi?
JAVA_HOME yog an operating system (OS) ib puag ncig hloov pauvuas tuaj yeem xaiv tau teeb tsa tom qab Java Development Kit (JDK) lossis Java Runtime Ib puag ncig (JRE) raug teeb tsa. JAVA_HOME ib puag ncig hloov pauv tau taw qhia rau cov ntaub ntawv kaw lus qhov chaw uas JDK lossis JRE raug teeb tsa.
Kuv yuav pom Java Tsev hloov pauv li cas?
Qhia JAVA_HOME
- Qhib lub qhov rai hais kom ua (Win⊞ + R, ntaus cmd, ntaus Enter).
- Enter the command echo %JAVA_HOME%. Qhov no yuav tsum tso tawm txoj hauv kev rau koj Java installation nplaub tshev. Yog tias tsis yog, koj qhov hloov pauv JAVA_HOME tsis raug teeb tsa kom raug.
JAVA_HOME ib puag ncig hloov pauv Mac nyob qhov twg?
JAVA_HOME yog qhov tseem ceeb ntawm txoj hauv kev tag nrho ntawm cov npe uas muaj cov npe sub-directory npe rau hauv uas tig muaj java. Rau Mac OSX – nws yog /Library/Java/Home.
JAVA_HOME Linux nyob qhov twg?
Linux
- Saib seb JAVA_HOME twb tau teeb tsa lawm, Qhib Console. …
- Nco ntsoov tias koj tau nruab Java lawm.
- Execute: vi ~/.bashrc OR vi ~/.bash_profile.
- ntxiv kab: exportJAVA_HOME=/usr/java/jre1.8.0_04.
- save the file.
- source ~/.bashrc OR qhov chaw ~/.bash_profile.
- Execute: ncha $JAVA_HOME.
- Cov ntaub ntawv yuav tsum luam tawm txoj kev.