java»·¾³±äÁ¿ÅäÖÃ
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
¡¡ 2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“»·¾³±äÁ¿”£»
4.Ôړϵͳ±äÁ¿”ÖУ¬ÉèÖÃ3ÏîÊôÐÔ£¬JAVA_HOME,PATH,CLASSPATH(´óСдÎÞËùν),ÈôÒÑ´æÔÚÔòµã»÷“±à¼”£¬²»´æÔÚÔòµã»÷“н¨”£»
5.JAVA_HOMEÖ¸Ã÷JDK°²×°Â·¾¶£¬¾ÍÊǸղŰ²×°Ê±ËùÑ¡ÔñµÄ·¾¶D:\java\jdk1.5.0_08£¬´Ë·¾¶Ï°üÀ¨lib£¬bin£¬jreµÈÎļþ¼Ð£¨´Ë±äÁ¿×îºÃÉèÖã¬ÒòΪÒÔºóÔËÐÐtomcat£¬eclipseµÈ¶¼ÐèÒªÒÀ*´Ë±äÁ¿£©£»
PathʹµÃϵͳ¿ÉÒÔÔÚÈκη¾¶ÏÂʶ±ðjavaÃüÁÉèΪ£º
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
¡¡ CLASSPATHΪjava¼ÓÔØÀà(class or lib)·¾¶£¬Ö»ÓÐÀàÔÚclasspathÖУ¬javaÃüÁî²ÅÄÜʶ±ð£¬ÉèΪ£º
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar (Òª¼Ó.±íʾµ±Ç°Â·¾¶)
¡¡¡¡%JAVA_HOME%¾ÍÊÇÒýÓÃÇ°ÃæÖ¸¶¨µÄJAVA_HOME£»
6.“¿ªÊ¼”£>;“ÔËÐД£¬¼üÈë“cmd”£»
7.¼üÈëÃüÁî“java -version”£¬“java”£¬“javac”¼¸¸öÃüÁ³öÏÖ»Ã棬˵Ã÷»·¾³±äÁ¿ÅäÖóɹ¦£»
8.ºÃÁË£¬´òÍêÊÕ¹¤¡£ÏÂÃ濪ʼÄãµÄµÚÒ»¸öjava³ÌÐò°É¡£
ÏÂÃæ½²½²java¼¸¸ö»·¾³±äÁ¿µÄº¬ÒåºÍlinuxϵÄÅäÖ÷½·¨£º
ͨ³££¬ÎÒÃÇÐèÒªÉèÖÃÈý¸ö»·¾³±äÁ¿£ºJAVA_HOME¡¢PATH ºÍ CLASSPATH¡£
JAVA_HOME£º¸Ã»·¾³±äÁ¿µÄÖµ¾ÍÊÇ Java ËùÔÚµÄĿ¼£¬Ò»Ð© Java °æµÄÈí¼þºÍһЩ Java µÄ¹¤¾ßÐèÒªÓõ½¸Ã±äÁ¿£¬ÉèÖà PATH ºÍ CLASSPATH µÄʱºò£¬Ò²¿ÉÒÔʹÓøñäÁ¿ÒÔ·½±ãÉèÖá£
PATH£ºÖ¸¶¨Ò»¸ö·¾¶ÁÐ±í£¬ÓÃÓÚËÑË÷¿ÉÖ´ÐÐÎļþµÄ¡£Ö´ÐÐÒ»¸ö¿ÉÖ´ÐÐÎļþʱ£¬Èç¹û¸ÃÎļþ²»ÄÜÔÚµ±Ç°Â·¾¶ÏÂÕÒµ½£¬ÔòÒÀ´ÎÑ°ÕÒ PATH ÖеÄÿһ¸ö·¾¶£¬Ö±ÖÁÕÒµ½¡£»òÕßÕÒÍê PATH ÖеÄ·¾¶Ò²²»ÄÜÕÒµ½£¬Ôò±¨´í¡£Java µÄ±àÒëÃüÁî (javac)£¬Ö´ÐÐÃüÁî (java) ºÍһЩ¹¤¾ßÃüÁî (javadoc, jdb µÈ) ¶¼ÔÚÆ䰲װ·¾¶ÏÂ
Ïà¹ØÎĵµ£º
JavaScriptÊÇÒ»ÖÖͨÓõġ¢»ùÓÚÔÐ͵ġ¢ÃæÏò¶ÔÏóµÄ½Å±¾ÓïÑÔ£¬¶ø½Å±¾ÓïÑÔ¾ÍÊÇÖ¸¿ÉÒÔºÍHtmlÓïÑÔ»ìºÏʹÓõÄÓïÑÔ
1.JavaScriptÓëJavaµÄÇø±ð
A. JavaScriptÊǽâÊÍÐ͵ÄÓïÑÔ£¬µ±³ÌÐòÖ´ÐеÄʱºò£¬ä¯ÀÀÆ÷Ò»±ß½âÊÍÒ»±ßÖ´ÐС£¶øJavaÊDZàÒëÐ͵ÄÓïÑÔ£¬±ØÐë¾¹ý±àÒë²ÅÄÜÖ´ÐÐ
B. ´úÂë ......
<%
//header.jsp
out.println("Protocol: " + request.getProtocol() + "<br>");
out.println("Scheme: " + request.getScheme() + "<br>");
out.println("Server Name: " + request.getServerName() + "<br>" );
out.println(&quo ......
1.Listת»»³ÉΪÊý×é¡££¨ÕâÀïµÄListÊÇʵÌåÊÇArrayList)
¡¡¡¡µ÷ÓÃArrayListµÄtoArray·½·¨¡£
¡¡¡¡toArray
¡¡¡¡public <T> T[] toArray(T[] a)·µ»ØÒ»¸ö°´ÕÕÕýÈ·µÄ˳Ðò°üº¬´ËÁбíÖÐËùÓÐÔªËصÄÊý×飻·µ»ØÊý×éµÄÔËÐÐʱÀàÐ;ÍÊÇÖ¸¶¨Êý×éµÄÔËÐÐʱÀàÐÍ¡£Èç¹ûÁбíÄÜ·ÅÈëÖ¸¶¨µÄÊý×飬Ôò·µ»Ø·ÅÈë´ËÁбíÔªËصÄÊý×é¡£·ñÔò£¬½«¸ù¾ ......
JavaÉè¼Æģʽ֮×ÛÊöƪ
http://tech.it168.com/a2009/0223/266/000000266380.shtml
×Ô´ÓJ2EE³öÏÖÒÔÀ´£¬¾Í´ó´ó¼ò»¯ÁËÔÚJavaϵÄÆóÒµ¼¶¿ª·¢¡£µ«ÊÇËæ×ÅJ2EEÔ½À´Ô½ÆÕ±éµØ±»Ó¦Óõ½¸÷¸öÁìÓòÖУ¬¿ª·¢ÕßÃǽ¥½¥Òâʶµ½ÐèÒªÒ»ÖÖ·½·¨À´±ê×¼»¯Ó¦ÓóÌÐòµÄ¿ª·¢¹ý³Ì£¬ËûÃDzÉÓõķ½·¨ÊDZê×¼»¯Ó¦ÓóÌÐòµÄ½á¹¹²ã¡£Ôڽṹ²ãͨ³£·â×°ÁËһЩ¶ÀÁ¢Ó ......
ÎÒʹÓÃURLÀàÀ´·ÃÎÊFTP·þÎñÆ÷£¬µ±µØÖ·ÖÐûÓÐÖÐÎÄʱûÓÐÎÊÌ⣬µ«ÊÇ
µ±ftpÖеÄÎļþ¼ÐÓÐÖÐÎÄʱ£¬¾ÍÎÞ·¨·ÃÎÊÁË£¬ÎÒÊÔ¹ýencoderºÍdecoderÀ࣬¶¼²»ÐУ¬ÓÐʲô½â¾ö·½·¨Ã´£¿
URL now = new URL("ftp://202.204.208.124/Èí¼þ/");
......