Cov txheej txheem:

Kuv yuav tau Javac li cas?
Kuv yuav tau Javac li cas?

Video: Kuv yuav tau Javac li cas?

Video: Kuv yuav tau Javac li cas?
Video: 394 Kuv Yuav Tau Moog Txug Kuv Leejtxiv Lub Tsev 2024, Kaum ib hlis
Anonim

Koj tuaj yeem mus rau qhov chaw thiab qhib cov ntawv tais ceev tseg, thiab koj tuaj yeem nrhiav tau javac .exe ntawv muaj. Yog tias koj tsis muaj cov ntawv tais ceev tseg lossis cov ntaub ntawv, tshawb rau qee qhov chaw. Yog tias tsis muaj cov ntaub ntawv zoo li no lossis phau ntawv teev npe, mus saib Java SE - Downloads thiab rub tawm qhov tseeb version ntawm JDK.

Tsis tas li ntawd, kuv yuav ua li cas qhib Javac?

Koj teb

  1. Tshawb xyuas koj txoj hauv kev javac ntawm Windows siv Windows Explorer C:Program FilesJavajdk1. 7.0_02in thiab luam qhov chaw nyob.
  2. Mus rau Control Vaj Huam Sib Luag. Environment Variables thiab Ntxig qhov chaw nyob ntawm qhov pib ntawm var.
  3. Kaw koj cov lus txib tam sim thiab rov qhib nws, thiab sau cov cai rau kev suav sau thiab ua tiav.

vim li cas Javac tsis paub? Yog li lub hauv paus ua rau " javac yog tsis paub raws li ib qho kev hais kom ua sab hauv lossis sab nraud "yog qhov system yog tsis yog muaj peev xwm nrhiav tau javac txib los ntawm nws PATH. tsuas yog muab ob npaug rau kos PATH thiab ntxiv rau hauv nplaub tshev ntawm JDK installation directory hauv txoj kev, yog tias tsis yog suav xa.

Ib yam li ntawd, kuv yuav ua li cas rub tawm Javac compiler?

1. Txhim kho Java Compiler ntawm Windows 7 (los yog tom qab) Tshuab

  1. Mus rau Java SE Downloads nplooj.
  2. Nyem rau Download rau Java Platform (JDK) 8u20.
  3. Ua ntej, Txais Daim Ntawv Pom Zoo Tso Cai.
  4. Rub tawm 'jdk-8u20-windows-i586.exe' lossis 'jdk-8u20-windows-x64.exe' rau hauv ib qho chaw ntawm koj lub computer.

Kuv yuav ua li cas yog tias Javac tsis raug lees paub hauv CMD?

Javac tsis lees paub tias yog cov lus txib sab hauv lossis sab nraud

  1. Qhib qhov hais kom ua.
  2. Khiav 'set path'.
  3. Yog tias koj tsis pom JDK txoj kev koj tuaj yeem ntxiv tam sim no.
  4. Yog tias koj twb muaj PATH teeb tsa nrog java qhov chaw, xyuas ib zaug ntxiv yog tias koj tau ntxiv txoj hauv kev mus rau hauv cov ntawv tais ceev tseg.
  5. Koj tuaj yeem hloov kho PATH hloov pauv los ntawm kev hais kom sai lossis los ntawm GUI.
  6. Txhawm rau hloov PATH siv GUI koj tuaj yeem ua raws cov kauj ruam hauv qab no.

Pom zoo: