é¦å ä¸è½½å¥½jdkï¼ç´æ¥åå»å°±å¯ä»¥å®è£ ï¼å®è£ æ¯è¾ç®åï¼åºæ¬é½æ¯ç¹å»âä¸ä¸æ¥âã
å®è£ 好jdkåï¼å°±è¦è®¾ç½®ç¯å¢åéäºï¼å ³éæè æå¼çææçªå£ï¼ç¶åå¨æççµèå¾æ ä¸é¢ç¹å»å³é®ï¼ç¶åå¨æå¼çèåä¸éæ©âå±æ§âã
ç¹å»âå±æ§âåï¼æå¼âç³»ç»â页é¢ï¼å¨å·¦è¾¹çåè½èåå表ä¸éæ©âé«çº§ç³»ç»è®¾ç½®âã
ç¹å»âé«çº§ç³»ç»è®¾ç½®âåï¼å°±æå¼âç³»ç»å±æ§â设置对è¯æ¡ï¼ä¹åç¹å»å³ä¸æ¹çâç¯å¢åéâæé®ã
å¨æå¼çâç¯å¢åéâ对è¯æ¡ä¸ï¼ç¹å»æä¸é¢çâæ°å»ºâï¼å¦ä¸å¾çº¢è²æ¹æ¡æ 注ï¼ä¹åå¨åéåä¸è¾å ¥ï¼JAVA_HOMEï¼åéå¼åé¢çè¾å ¥æ¡ä¸è¾å ¥jdkå®è£ çè·¯å¾ï¼å¦å°å¦¹å°±æ¯é»è®¤å®è£ è·¯å¾ï¼C:\Program Files\Java\jdk1.6.0_45,æåç¹å»âç¡®å®âæé®ï¼å®ææ°åéçæ·»å ã
ç¹å»âç¯å¢åéâä¸é¢çâæ°å»ºâæé®ï¼ç¶åå¨å¼¹åºç对è¯æ¡ä¸è¾å ¥åéåï¼CLASSPATHï¼ååéå¼ï¼C:\Program Files\Java\jdk1.6.0_45\libã
å¨âç³»ç»åéâä¸é¢æ¾å°Pathï¼å¹¶åå»æå¼æè ç¹å»âç¼è¾âæé®ï¼ç¶åå¨æåè¾å ¥javaçbinè·¯å¾:C:\Program Files\Java\jdk1.6.0_45\binï¼æåç¹å»å个确å®æé®ï¼è¿æ ·å°±å®æäºjdkçå®è£ åjavaç¯å¢åéç设置ã