Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

³¬ÇáÁ¿¼¶JAVA¿ª·¢·½·¨(Ò»)

      Ä¿Ç°ÒÔEclipseΪÖ÷µÄÖØÁ¿¼¶¿ª·¢¹¤¾ß´óÐÐÆäµÀ.ËäÈ»¼«Îª·½±ã.µ«Èí¼þ°²×°¶ÔÓÚϵͳÅäÖò»¸ßµÄµçÄÔ»òÕßСÏîÄ¿¿ª·¢·Ç³£²»Àû.ÔÚÒÆÖ²¹ý³ÌÖл¹ÓÐÅäÖÃÎÊÌâ.±È½ÏÂé·³.Òò´Ë¶ÔÓÚһЩ³¬Ð¡ÏîÄ¿,ʹÓÃÇáÁ¿¼¶µÄ¿ª·¢·½·¨,ÏÔµÃÓÉΪ±ØÒª.Ëùν³¬ÇáÁ¿¼¶,¾ÍÊÇÓÃ×î¼òµ¥µÄ¹¤¾ßÍê³ÉJAVAϵͳµÄ¿ª·¢.ÔÚ¿ª·¢µ±ÖÐÒ²¿ÉÒÔÁ˽âJAVAµÄ±àÒëÔËÐз½·¨.Á˽âÀ´ÁúÈ¥Âö.ÁíÍâ²»ÖÁÓÚÒ»Ììµ½ÍíÌýÓ²ÅÌÏì.
Ò».¿ª·¢»·¾³
     ¿ª·¢¹¤¾ß:¼Çʱ¾(UtralEdit) + JDK1.6
     ¿ª·¢Ä£Ê½:JSP+JavaBean 
     ƽ̨:APACHE-TOMCAT+JDK1.6+WIN32
¶þ.»·¾³ÅäÖü°ËµÃ÷
    ÉèÖû·¾³±äÁ¿(ÎҵĵçÄÔ-¸ß¼¶-»·¾³±äÁ¿[¿ÉÒÔ½«µ±Ç°µçÄԵĻ·¾³±äÁ¿Éè½øÈ¥,Ò²¿ÉÖ»ÉèÖøöÈ˵Ļ·¾³±äÁ¿])
    PATH E:\JDK\bin (ÒòΪBINĿ¼ÏÂÓÐJAVA.exe ¼ÓÈëÊÇΪÁË¿ÉÒÔÔËÐÐJAVAÃüÁî)
    JAVA_HOME E:\JDK(×ÜÈÃÎÒÏëÆðUNIXϵÄORACLE_HOME)
    CLASSPATH CLASSPATH=.;E:\JDK\lib\tools.jar;E:\JDK\lib\dt.jar ;(Õâ¸öÊÇΪÁËÕÒµ½ÀàÎļþ,ÆäÖÐ.;ÊÇÖ¸¶¨µ±Ç°Ä¿Â¼)
    Èç¹û²»Ö¸¶¨CLASSPATH  ÕâÌõ´íÎó»áºÜ³£¼û:cannot resolve symbol
Èý.µÚÈý·½JARÎļþ´ø°ü±àÒë
   ´ø·¾¶±àÒë·½·¨:ÔÚCMDÖÐÊäÈëÒÔÏÂÃüÁî
   E:\>javac MjLog.java -classpath E:\JDK\lib\commons-logging.jar
   ¿ÉÒÔ½«µÚÈý·½°ü´øÈë±àÒë.ÄãÏë¼ÓÈë±àÒëµÄÎļþ¿Éͳһ·Åµ½LIBĿ¼Ï±ãÓÚά»¤.


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

JavaÏà¶Ô·¾¶/¾ø¶Ô·¾¶×Ü½á £¨×ª£©

1.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖУ¬ ......

this ÓësuperÔÚjavaÖÐÔËÓÃÕûºÏ


 A.ʹÓùؼü×ÖthisµÄ×¼Ôò£º
1.ÔÚ¹¹ÔìÆ÷ÖУ¬Èç¹ûҪʹÓùؼü×Öthis,ÄÇô£¬±ØÐë·ÅÔÚµÚÒ»ÐУ¬·ñÔò½«µ¼ÖÂÒ»¸ö±àÒë´íÎó¡£
2.¹¹Ôì·½·¨ÒýÓÃthisÖ¸ÏòÕýÔÚÖ´Ðз½·¨µÄÀàµÄʵÀý¡£¾²Ì¬·½·¨²»ÄÜʹÓÃthis¹Ø¼ü×Ö£¬ÒòΪ¾²Ì¬·½·¨²»ÊôÓÚÀàµÄʵÀý£¬ËùÒÔthisÒ²¾ÍûÓÐʲô¶«Î÷È¥Ö¸Ïò¡£¹¹ÔìÆ÷µÄthisÖ¸Ïòͬһ¸öÀàÖУ¬²»Í¬²ÎÊýÁбíµÄÁíÍâÒ» ......

JavaÏß³ÌÖ®Producer

 Producer-Consumer PatternµÄ²ÎÓëÕߣº
1. Data²ÎÓëÕß
    ±»Producer²ÎÓëÕßËù´´½¨£¬²¢ÓÉConsumer²ÎÓëÕßËùʹÓá£
2. Producer£¨Éú²úÕߣ©²ÎÓëÕß
    ´´½¨Data²ÎÓëÕߣ¬²¢½«Æä´«µÝ¸øChannel²ÎÓëÕß¡£
3. Consumer£¨Ïû·ÑÕߣ©²ÎÓëÕß
    ´ÓChannel²ÎÓëÕß»ñÈ¡Data²ÎÓëÕß¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ