java¿ª·¢»·¾³´î½¨ д¸øjavaÐÂÊÖ
Ò»¡¢windowsÏ¿ª·¢»·¾³µÄ´î½¨
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØwindowsƽ̨µÄJDK,²¢°²×°¡£¼ÙÉ谲װĿ¼Ϊ£ºC:\jdk6.0
2¡¢É趨Ïà¹Ø»·¾³Á¿£¨ÒÔwindowsXP)Àý£º
1¡¢ÓÒ»÷×ÀÃæÉÏ“ÎҵĵçÄÔ”£¬Ñ¡ÔñÊôÐÔ
2¡¢ÔÙÑ¡Ôñ“¸ß¼¶”»îÒ³£¬ÕÒµ½ÏµÍ³±äÁ¿£¬²¢µã»÷ÏÂÃæµÄ“н¨”
3¡¢±äÁ¿Ãû£ºJAVA_HOME £¬Öµ£ºC:\jdk6.0(ÄãµÄJDK°²×°Ä¿Â¼£©£¬µã»÷“È·¶¨”
4¡¢ÒÔͬÑùµÄ·½·¨Ð½¨£¬±äÁ¿Ãû£ºCLASSPATH £¬Öµ£º %JAVA_HOME%\lib;.
×¢Ò⣬ºóÃæÊÇ·ÖºÅÓëµãºÅ£¨Ó¢Îĵģ©£¬²»ÄÜ´í
5¡¢ÔÚϵͳ±äÁ¿ÖÐÕÒµ½“path”£¬²¢µã»÷“Ð޸Ĕ£¬ÔÚÆä¶ÔÓ¦µÄÖµµÄ×îºóÃæ×·¼Ó“;%JAVA_HOME%\bin”£¬ÒýºÅ²»ÔÚÄÚ,Ò»Ö±µã“È·¶¨”Ö±µ½ËùÓеĴ°¿Ú¹Ø±Õ
6¡¢´ò¿ª“ÔËÐД´°¿Ú£¬ÊäÈë“cmd”»Ø³µ£¬ÔÚ³öÏÖµÄÌáʾ·û´°¿ÚÏÂÊäÈ룺“javac -version”²¢»Ø³µ£¬³öÏÖ“javac 1.6.0”µÈÀàËƵÄÐÅÏ¢£¬Ôò´ó¹¦¸æ³ÉÒ²¡£
7¡¢°²×°ÄãµÄ¿ª·¢IDE£¬ÈçEclipse¡¢JBuilderµÈ£¬¾Í²»¶à˵ÁË
¶þ¡¢linuxÏ¿ª·¢»·¾³µÄ´î½¨(ÒÔUbuntuΪÀý£©
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØlinuxƽ̨µÄJDK,µÄbinµµ;
2¡¢½«ÄãÏÂÔصÄbinµµ·ÅÔÚÄãÏë°²×°µÄĿ¼£¬Èç/optÏÂÃ棬ÏÂÃæ¼ÙÉè·ÅÔÚ/optĿ¼ÏÂ,ÎļþÃûΪjdk1.6.0.bin
3¡¢´ò¿ªÖնˣ¬ÒÀ´ÎÖ´ÐÐÏÂÁÐÃüÁ
cd /opt
sudo sh jdk1.6.0.bin (ÆäËüƽ̨²»ÐèÒªsudo£¬Ö»ÒªÏàÓ¦µÄȨÏ޾ͿÉÒÔ£©
jdk°²×°Íê³É£¬°²×°Ä¿Â¼Îª£º/opt/jdk1.6.0
&
Ïà¹ØÎĵµ£º
ORACLEµÄѧϰÒѾ¸æÒ»¶Î茖£¬½ñÌìÒѾ¿ªÊ¼HIBERNATEµÄѧϰ£¬×ÜÌå¸Ð¾õͦÁ¼ºÃµÄ£¬ËäÈ»ºÜ¶àµÄ֪ʶ²»ÄܼÇס£¬µ«ÊÇÔÚʹÓõÄʱºòÄܹ»Ñ¸ËÙµÄÕÒ¶Ô·½·¨À´½â¾öÏàÓ¦µÄÎÊÌ⣬ֻҪÇÚ¼ÓÁ·Ï°£¬¾Í¿ÉÒÔ¼Çס¡£Ö»²»¹ý£¬Ê±¼äÓÐ珢£¬HIBERNATEµÄ¿Î³ÌÒ²Ö»ÓÐÈýÌìµÄʱ¼ä£¬ËùÒÔÔÚÕâÆÚ¼äÎÒµÄÈÎÎñÊǾ¡Á¿ÎüÒý£¬ÔÚ»¨·Å¼ÙµÄʱºòÀ´¸´Ï° ......
JavaÐéÄâ»úĬÈÏ·ÖÅä64MÄڴ棬Èç¹ûÄãµÄÓ¦ÓñȽϴ󣬳¬³ö64MÄڴ棬JavaÐéÄâ»ú¾Í»áÅ׳öOutOfMemoryError£¬²¢Í£Ö¹ÔËÐС£²»¹ÜÊÇʲôӦÓã¨WebÓ¦Óá¢ApplicationµÈ£©£¬Ö»ÐèÒªÐÞ¸ÄÄãµÄ»úÆ÷ÉϵÄÔËÐÐJavaÃüÁÔÚjava xxxÃüÁîÖÐÌí¼Ó-Xms(×îСʹÓÃÄÚ´æ)¡¢-Xmx£¨×î´óʹÓÃÄڴ棩¼´¿É½â¾ö¡£µ±È»£¬Õâ¶ùµÄÄÚ´æÈÝÁ¿¶¼ÊÇÖ¸ÎïÀíÄڴ棬²»Ä ......
±¾ÎÄÊôÓÚתÔØ£¬ÔÚ±¾ÏµÁеĵڶþ²¿·Ö»áÌÖÂÛ¸ü¼Ó¸´ÔÓµÄÇé¿ö¡£
ÏÂÃæµÄÂÛÊöÕë¶Ô32λϵͳ£¬¶Ô64λϵͳ²»ÊÊÓ㬺óÐð¾³£ÄãдÁËÒ»¸ö³ÌÐò£¬Ò»²âÊÔ£¬¹¦ÄÜûÎÊÌ⣬һ¿´ÄÚ´æÕ¼ÓÃÒ²²»¶à£¬¾Í²»È¥¿¼ÂÇÆäËüµÄ¶«Î÷ÁË¡£µ«¿ÉÄܳÌÐòʹÓÃÁËÒ»¸öʲôÊý¾Ý½á¹¹£¬»áµ±Êý¾Ý¹æÄ£±ä´óʱ£¬ÄÚ´æÕ¼Óü¤Ôö¡£
»ù±¾&&¹Ø¼üµÄÎÊÌâÊÇ£¬JavaÀï¸÷ÖÖ¶«¶«Õ ......
1.¼ÆËãijһÔ·ݵÄ×î´óÌìÊý
Calendar time=Calendar.getInstance();
time.clear();
time.set(Calendar.YEAR,year); //year Ϊ int
time.set(Calendar.MONTH,i-1);//×¢Òâ,Calendar¶ÔÏóĬÈÏÒ»ÔÂΪ0
int day=time.getActualMaximum(Calendar.DAY_OF_MONTH);//±¾Ô·ݵÄÌìÊý
×¢£ºÔÚʹÓÃset·½·¨Ö®Ç°£¬±ØÐëÏÈ ......