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

java Ïà¶Ô·¾¶

 ×ª×Ô£ºhttp://java.mblogger.cn/sadfasfasd/ 
 ×òÌì¸ãÁ˶¯Ì¬×Ô¶¯¼ÓÔØÅäÖÃÎļþ£¬ÓÖÓöµ½Â·¾¶ÎÊÌ⣬ÕÒµ½ÕâƪºÜ°ôµÄÎÄÕ£¬ÊÕ²Øһϣ¬À´×Ô
http://java.chinaitlab.com/base/532062_3.html  http://www.blogjava.net/killme2008/archive/2007/06/08/122758.html 
      Ç°ÑÔ
      JavaµÄ·¾¶ÎÊÌ⣬·Ç³£ÄѸ㡣×î½üµÄ¹¤×÷Éæ¼°µ½´´½¨ºÍ¶ÁÈ¡ÎļþµÄ¹¤×÷£¬ÕâÀïÎҾ͸ø´ó¼Ò³¹µ×µÃ½â¾öJava·¾¶ÎÊÌâ¡£
      ÎÒ±àдÁËÒ»¸ö·½·¨£¬±È ClassLoader.getResource(String Ïà¶Ô·¾¶)·½·¨µÄÄÜÁ¦¸üÇ¿¡£Ëü¿ÉÒÔ½ÓÊÜ“../”ÕâÑùµÄ²ÎÊý£¬ÔÊÐíÎÒÃÇÓÃÏà¶Ô·¾¶À´¶¨Î»classpathÍâÃæµÄ×ÊÔ´¡£ÕâÑù£¬ÎÒÃǾͿÉÒÔʹÓÃÏà¶ÔÓÚ classpathµÄ·¾¶£¬¶¨Î»ËùÓÐλÖõÄ×ÊÔ´£¡
       
      Java·¾¶
      JavaÖÐʹÓõÄ·¾¶£¬·ÖΪÁ½ÖÖ£º¾ø¶Ô·¾¶ºÍÏà¶Ô·¾¶¡£¾ßÌå¶øÑÔ£¬ÓÖ·ÖΪËÄÖÖ£º
      Ò»¡¢URIÐÎʽµÄ¾ø¶Ô×ÊԴ·¾¶
      È磺file:/D:/java/eclipse32/workspace/jbpmtest3/bin/aaa.b
      URLÊÇURIµÄÌØÀý¡£URLµÄǰ׺/ЭÒ飬±ØÐëÊÇJavaÈÏʶµÄ¡£URL¿ÉÒÔ´ò¿ª×ÊÔ´£¬¶øURIÔò²»ÐС£
      URLºÍURI¶ÔÏó¿ÉÒÔ»¥Ïàת»»£¬Ê¹Óø÷×ÔµÄtoURI(),toURL()·½·¨¼´¿É£¡
      
      ¶þ¡¢±¾µØϵͳµÄ¾ø¶Ô·¾¶
      D:/java/eclipse32/workspace/jbpmtest3/bin/aaa.b
      Java.io°üÖеÄÀ࣬ÐèҪʹÓÃÕâÖÖÐÎʽµÄ²ÎÊý¡£
      µ«ÊÇ£¬ËüÃÇÒ»°ãÒ²ÌṩÁËURIÀàÐ͵IJÎÊý£¬¶øURIÀàÐ͵IJÎÊý£¬½ÓÊܵÄÊÇURIÑùʽµÄString¡£Òò´Ë£¬Í¨¹ýURIת»»£¬»¹ÊÇ¿ÉÒÔ°ÑURIÑùʽµÄ¾ø¶Ô·¾¶ÓÃÔÚjava.io°üÖеÄÀàÖС£
      
      Èý¡¢Ïà¶ÔÓÚclasspathµÄÏà¶Ô·¾¶
      È磺Ïà¶ÔÓÚ
      file:/D:/java/eclipse32/workspace/jbpmtest3/bin/Õâ¸ö·¾¶µÄÏà¶Ô·¾¶¡£ÆäÖУ¬binÊDZ¾ÏîÄ¿µÄclasspath¡£ËùÓеÄJavaÔ´Îļþ±àÒëºóµÄ.classÎļþ¸´ÖƵ½Õâ¸öĿ¼ÖС£
 &n


Ïà¹ØÎĵµ£º

ÔÚjavaÖÐʹÓÃiText²ð·ÖPDFÎļþ

ʹÓÃiTextÀ´²ð·ÖpdfÎļþÏà±ÈPDFBOXÒª¸´ÔÓÒ»µã¡£ÒÔÏÂʾÀýʵÏÖÁ˲ð·ÖPDFÎļþΪµ¥Ò³Îļþ£¬²¢±£´æΪ“ÎļþÃû-n.pdf”µÄÎļþ£º
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentExce ......

ÓÃJAVAʵÏÖ¶ÑÕ»£¨Êý×éƪ£©

ʲôÊǶÑÕ»£¬¹ØÓÚÕâ¸öÃû´Ê£¬ÎÒÔڰٶȣ¬googleËÑË÷ÁË°ëÌ죬ҲûÓз¢ÏÖÒ»¸ö±È½ÏȨÍþµÄ½âÊÍ£¬»¹ÓÐÐí¶à×ÊÁÏÓïÑɲ»Ï꣬¾ÍÒÔά»ù°Ù¿ÆµÄ½âÊÍΪ׼°É£¬ºÍÎÒ¼ÇÒäÖеÄÒ»Ö¡£
¶ÑÕ»£¨Ó¢ÎÄ£ºstack£©£¬Öйú´ó½×÷¶ÑÕ»£¬Ì¨Íå×÷¶Ñµþ£¬ÔÚ¼ÆËã»ú¿Æ學ÖУ¬ÊÇÒ»種ÌØÊâµÄ´®ÁÐÐÎʽµÄ資ÁÏ結構£¬ËüµÄÌØÊâÖ®處ÔÚì ......

¹ØÓÚjavaÍøÂç±à³Ì

       java.netµÄÀà¿ÉÒÔ»®·ÖΪÁ½ÀࣺÌ×½Ó×ÖAPI£¨Sockets API)ºÍÓÃÓÚ´¦Àíͳһ×ÊÔ´¶¨Î»Æ÷£¨URL£©¡£Socket ÊÇËùÓÐÆäËû¿ÉÒÆÖ²ÍøÂçͨÐŵĵײã»úÖÆ£¬ÓÃÓÚÍøÂçÉÏ¿Í»§ºÍ·þÎñÆ÷Ö®¼äµÄ¸÷ÖÖͨÐÅ¡£javaÌṩµÄÌ×½Ó×ÖÖ§³ÖÈýÖÖ²»Í¬µÄµ×²ãЭÒ飺Socket£¨ÃæÏòÁ¬½ÓµÄЭÒ飩¡¢DatagramSocket£¨ÎÞÁ¬½ÓЭÒ飩ºÍMu ......

JavaÒì³£¿ò¼ÜÉè¼Æ

ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆڼ䷢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ°ÑËü´«µÝ¸øÔËÐÐʱϵͳ¡£Õâ¸ö¶ÔÏó±»½Ð×öÒì³£¶ÔÏó£¬Ëü°üº¬ÁËÓйشíÎóµÄÐÅÏ¢£¬ÕâЩÐÅÏ¢°üÀ¨´í ......

JAVA ±àÒëÕÒ²»µ½·ûºÅ

ͨ³£Çé¿öÏ£¬ÎÒÃÇÔÚ±àдjavaÎļþʱ£¬»áÓÐÒýÓõ½×ÔÒѶ¨ÒåµÄһЩÀ࣬Èç¹û°´Í¨³£µÄjavac *.javaµÄÐÎʽÀ´±àÒë»á³öÏÖÕÒ²»µ½·ûºÅµÄ´íÎó¡£
ÒÔÏÂÌṩÁËÁ½ÖÖ·½·¨£¬ÒÔ¹©²Î¿¼
¼ÙÈçÔÚd:\web\wshÏÂÓÐa.javaºÍb.javaÁ½¸öÎļþ£¬ÔÚb.javaÎļþÖÐÓÐÒýÓÃÁËa.java¡£ÏÂÃæÊDZàÒëµÄ·½·¨
·½·¨Ò»:
½øÈëd:\web\wshÏ£º javac a.java
È»ºóÍ˳öwshÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ