UbuntuÏÂJAVA¿ª·¢»·¾³²¿Êð
°²×°¿ª·¢»·¾³
ubuntu9.10Ï°²×°JAVA¿ª·¢»·¾³Æäʵ»¹ÊDZȽϼòµ¥µÄ£¬ÎÒÃǾÍÒÔ°²×°³£ÓõÄjdk¡¢eclipse¡¢tomcat¡¢svn client£¨ÕÒµ½Ò»¸ö¿ÉÒÔºÍwindowsÖеÄСÎÚ¹êÀàËƵĵ«°²×°»¹ÓеãÎÊÌâ½â¾öºó»á²¹ÉÏ£©¡¢oracle clientΪÀý½²½²ÈçºÎ°²×°£¨±¾ÎÄÖÐ×Ô¶¯»¯°²×°½Å±¾ÏÂÔØhttp://download.csdn.net/source/2034239,ÎļþÌ«´ó·Ö³É6·Ý £©¡£Ç°ÌáÊÇÄãµÄubuntu±ØÐëÄܹ»Á¬½Óµ½»¥ÁªÍø£¬Äã²»ÊÇ»¹ÒªÎÊÎÒÔõôÅäÖÃÍøÂçÁ¬½Ó°É£¿ËãÁË£¬Ò»»áÔÚдµã³£ÓÃÉèÖÃ(²Î¿¼“ubuntu°²×°¼°³£ÓÃÉèÖÔÈç¹ûÄãÊÇlinux¸ßÊ־Ͳ»ÒªÈ¡Ð¦ÎÒÁË£¡£¡)£¬ÎҾͰÑÕû¸ö²½ÖèÏêϸµÄдÏ°ɣ¡£¡
1¡¢ÅäÖÃÍøÂç¡£ÕâÒ²ÊÇ°²×°Íê³ÉºóµÚÒ»¼þÒª×öµÄÊ£¬ubuntuÖÐN¶àÈí¼þ¶¼ÊÇÔÚÏß°²×°µÄ£¬À뿪ÍøÂçÊDz»Ðеģ¬ÖÁÉÙÔÚ°²×°Íê³É¿ª·¢»·¾³ÒÔÇ°ÐèÒªÍøÂç»òÕß˵ÓÐÍøÂç¸ü·½±ã°²×°£»
2¡¢ÐÞ¸ÄÈí¼þÔ´¡£ÎªÁ˱£Ö¤ÏÂÔصÄËٶȣ¬ÐèҪѡÔñ´Ó×î¿ìµÄ·þÎñÆ÷ÏÂÔØ£»
3¡¢¸üÐÂubuntuÈí¼þ¡£ÏÂÔØ×îÐÂÈí¼þ°ü¼°¿ª·¢¿â
ÒÔÉÏ¿ÉÒԲο¼ ubuntu°²×°¼°³£ÓÃÉèÖÃ
4¡¢°²×°jdk£¨º¬jre¡¢plugin£©¡£´ò¿ªÖÕ¶ËÊäÈëÈçÏÂÃüÁ//£¨°üº¬//£©ÊǶÔÃüÁîµÄ˵Ã÷£¬²»ÐèÒªÊäÈë¡£
sudo apt-get install sun-java6-jdk //¹ÜÀíÔ±Éí·Ý´Ó»¥ÁªÍøÏÂÔØ°²×°°²×° jdk1.6¡£°²×°¹ý³ÌÖÐÐèÒªÄã»Ø´ðÊÇ·ñͬÒâʹÓÃÐÒ飨ºìÀ¶É«µÄÌáʾ½çÃ棩,´Ëʱ°´tab¼üÖÁOK»òYES£¬ÔÙ°´»Ø³µ¼´¿ÉÕý³£°²×°
sudo apt-get install sun-java6-plugin //°²×°firefoxµÈ²å¼þ
sudo update-alternatives --config java //ÅäÖÃjavaµ½/etc/alternatives¡£
//Èç¹ûûÓÐÍøÂç»ò´ÓsunÏÂÔØ×îеÄ×îеĽøÐÐÊÖ¶¯°²×°jdk£¬°²×°³É¹¦ºó»¹ÐèÒªÉèÖÃ,ÈçʹÓÃsudo update-alternatives --install /usr/bin/java java jdk°²×°Ä¿Â¼/bin/java »òln -s jdk°²×°Ä¿Â¼/bin/java -d /etc/alternatives/java ÒÔ¼°/usr/binÖеÄjava¡¢javac¡¢javadoc
5¡¢ÉèÖû·¾³±äÁ¿¡£¸ù¾Ýjdkʵ¼Ê°²×°Ä¿Â¼É趨£¬Èç¹ûÊÇjdk1.6²¢Ê¹ÓÃapt-get°²×°Ò»°ã²»»á±ä£»ÍøÉÏÓкܶàÖÐÐ޸ķ½·¨È磺./bashs.sh /etc/environmentµÈÄ¿µÄ¶¼ÊÇÒ»ÑùµÄ¡£²»¹ý½¨ÒéÐÞ¸Ä/etc/profileÎļþÒòΪËûÊÇlinuxµÄÈ«¾ÖÅäÖÃÎļþ¶ÔËùÓÐÓû§ÉúЧ¡£
&nbs
Ïà¹ØÎĵµ£º
ËäÈ»²»¾õµÃÔÚ±à³ÌʱÕýÈ·ÅжÏjavaÀà³õʼ»¯¹¤×÷ÏȺó˳Ðò»áÊÇÒ»¸öÌôÕ½£¬ÇÒ¶ÔÓÚÀà³õʼ»¯µÄÈÏʶ»¹Ö»Í£ÁôÔÚÓïÑÔÌØÐÔ»úÖƵIJãÃæ(»òÐí»áÊÇÒ»ÖÖʵÏÖ¼¼ÇÉÁìÓòµÄÒéÌâ)£¬µ«¶ÔÓÚ¹ØÓÚ³õʼ»¯ÕâÀàÁãÉ¢¶øÓÖϸСµÄ֪ʶµã£¬×ܽỹÊÇÓмÛÖµµÄ ......
instanceofÊÇJavaµÄÒ»¸ö¶þÔª²Ù×÷·û£¬ºÍ==£¬>£¬<ÊÇͬһÀණ¶«¡£ÓÉÓÚËüÊÇÓÉ×Öĸ×é³ÉµÄ£¬ËùÒÔÒ²ÊÇJavaµÄ±£Áô¹Ø¼ü×Ö¡£ËüµÄ×÷ÓÃÊDzâÊÔËü×ó±ßµÄ¶ÔÏóÊÇ·ñÊÇËüÓұߵÄÀàµÄʵÀý£¬·µ»ØbooleanÀàÐ͵ÄÊý¾Ý¡£¾Ù¸öÀý×Ó£º
¡¡¡¡String s = "I AM an Object!";
¡¡¡¡boolean isObject = s instanceof Object;
¡¡¡¡ÎÒÃÇÉùÃ÷ÁËÒ»¸öStrin ......
ʹÓÃJava²Ù×÷Îı¾ÎļþµÄ·½·¨Ïê½â
ÕªÒª: ×î³õjavaÊDz»Ö§³Ö¶ÔÎı¾ÎļþµÄ´¦ÀíµÄ£¬ÎªÁËÃÖ²¹Õâ¸öȱº¶¶øÒýÈëÁËReaderºÍWriterÁ½¸öÀà
×î³õjavaÊDz»Ö§³Ö¶ÔÎı¾ÎļþµÄ´¦ÀíµÄ£¬ÎªÁËÃÖ²¹Õâ¸öȱº¶¶øÒýÈëÁËReaderºÍWriterÁ½¸öÀ࣬ÕâÁ½¸öÀ඼ÊdzéÏóÀ࣬WriterÖÐ write(char[] ch,int off,int
length)£¬flush()ºÍclose()·½·¨Îª³éÏó·½· ......
Java
ÐéÄâ»ú(JVM)ÊÇ¿ÉÔËÐÐJava
´úÂëµÄ¼ÙÏë¼ÆËã»ú¡£Ö»Òª¸ù¾ÝJVM¹æ¸ñÃèÊö½«½âÊÍÆ÷ÒÆÖ²µ½Ìض¨µÄ¼ÆËã»úÉÏ£¬¾ÍÄܱ£Ö¤¾¹ý±àÒëµÄÈκÎJava´úÂëÄܹ»ÔÚ¸ÃϵͳÉÏÔËÐС£±¾ÎÄÊ×ÏȼòÒª½éÉÜ´ÓJavaÎļþµÄ±àÒëµ½×îÖÕÖ´ÐеĹý³Ì£¬Ëæºó¶ÔJVM¹æ¸ñÃèÊö×÷һ˵Ã÷¡£
¡¡¡¡
¡¡¡¡Ò».JavaÔ´ÎļþµÄ±àÒë¡¢ÏÂÔØ
¡¢½âÊͺÍÖ´ÐÐ
¡¡¡¡JavaÓ¦ÓóÌÐòµÄ¿ª·¢ ......
Ï̳߳ØÀàΪ java.util.concurrent.ThreadPoolExecutor£¬³£Óù¹Ôì·½·¨Îª£º ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepAliveTime, TimeUnit unit,
BlockingQueue<Runnable> workQueue,
RejectedExecutionHandler handler) corePoolSize£º Ï̳߳Øά»¤Ï̵߳Ä×îÉÙÊýÁ¿ ......