ÔÚWin10ϵͳÉÏ£¬µ±°²×°JDKÍê±ÏÇÒÅäÖÃJDK»·¾³±äÁ¿³É¹¦ºó£¬»áż¶û·¢ÏÖµÚÒ»´ÎÊÇ¿ÉÒÔÖ±½ÓʹÓÃjava¡¢javacµÈJavaÃüÁîµÄ£¬µ«ÖØÆôµçÄÔºó¾Í²»ÄÜʹÓÃjavacÃüÁîÁË£¬²¢ÇÒEclipse´ò¿ªÒ²ÊÇÓÐÎóµÄ£¬½ØͼÈçÏ£º
Õâʱºò£¬¸ÃÔõô½â¾öÄØ£¿
½â¾ö·½°¸1(ÁÙʱ·½°¸£¬Ï´ÎÖØеçÄÔÒÀÈ»±¨´í)£ºµã»÷µçÄÔÊôÐÔ²¢½øÈë»·¾³±äÁ¿ÅäÖô¦£¬±à¼path(ʲô¶¼²»ÓÃд)£¬È»ºóһ·µã»÷¡°È·¶¨¡±£¬ok£¬ÁÙʱ½â¾öÁË¡£
½â¾ö·½°¸2£º¾ßÌå½â¾ö²½ÖèÈçÏ£º
£¨1£©´ò¿ª»·¾³±äÁ¿ÅäÖã¬Ñ¡ÖÐPath±äÁ¿£¬²¢µã»÷±à¼£»
£¨2£©½«¡°%JAVA_HOME%\bin¡±ÉÏÒÆ£¬²¢Òƶ¯µ½×îÉÏÃ棬ok£¬ÎÊÌâ½â¾öÁË¡£
˵Ã÷ÔÒò£ºÆäʵʶ±ð²»ÁËjavacÃüÁîÊÇÒòΪjavacËùÖ¸¶¨µÄ·¾¶²»¶Ô£¬Ëü»áĬÈϵ½ÏÂÁÐĿ¼ÖÐÈ¥²éÕÒjavac.exe
C:\ProgramData\Oracle\Java\javapath |
´ò¿ªÉÏÊöĿ¼£¬ÎÒÃÇ·¢ÏÖ²¢Ã»ÓÐjavac.exeÎļþ£¬Òò´Ë±¨´í£¬½ØͼÈçÏ£º
ok£¬»ù±¾ÎÊÌâ¾ÍÒѾ½â¾öÁË¡£¡£¡£