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

java ·¾¶ classpath


¹éÄÉһЩÍøÉÏÈ¡JAVA·¾¶µÄ·½·¨£º
    ×¢Ã÷£ºÈç¹û´ÓANTÆô¶¯³ÌÐò£¬this.getClass().getResource("")È¡³öÀ´µÄ±È½Ï¹Ö£¬Ö±½ÓÓÃJAVAÃüÁîÐе÷ÊԾͿɳɹ¦¡£
    µÃµ½classpathºÍµ±Ç°ÀàµÄ¾ø¶Ô·¾¶µÄһЩ·½·¨
    »ñµÃCLASSPATHÖ®Íâ·¾¶µÄ·½·¨£º
URL
base = this.getClass£¨£©.getResource£¨""£©£»
//ÏÈ»ñµÃ±¾ÀàµÄËùÔÚλÖã¬Èç/home/popeye/testjava/build/classes/net/ String path =
new File£¨base.getFile£¨£©£¬ "……/……/……/"+name£©.getCanonicalPath£¨£©£»
//¾Í¿ÉÒԵõ½/home/popeye/testjava/name
    ÏÂÃæÊÇһЩµÃµ½classpathºÍµ±Ç°ÀàµÄ¾ø¶Ô·¾¶µÄһЩ·½·¨¡£Äã¿ÉÄÜÐèҪʹÓÃÆäÖеÄһЩ·½·¨À´µÃµ½ÄãÐèÒªµÄ×ÊÔ´µÄ¾ø¶Ô·¾¶¡£
    1.FileTest.class.getResource£¨""£©
    µÃµ½µÄÊǵ±Ç°ÀàFileTest.classÎļþµÄURIĿ¼¡£²»°üÀ¨×Ô¼º£¡
    È磺file£º/D£º/java/eclipse32/workspace/jbpmtest3/bin/com/test/
    2.FileTest.class.getResource£¨"/"£©
    µÃµ½µÄÊǵ±Ç°µÄclasspathµÄ¾ø¶ÔURI·¾¶¡£
    È磺file£º/D£º/java/eclipse32/workspace/jbpmtest3/bin/
    3.Thread.currentThread£¨£©.getContextClassLoader£¨£©.getResource£¨""£©
    µÃµ½µÄÒ²Êǵ±Ç°ClassPathµÄ¾ø¶ÔURI·¾¶¡£
    È磺file£º/D£º/java/eclipse32/workspace/jbpmtest3/bin/
    4.FileTest.class.getClassLoader£¨£©.getResource£¨""£©
    µÃµ½µÄÒ²Êǵ±Ç°ClassPathµÄ¾ø¶ÔURI·¾¶¡£
    È磺file£º/D£º/java/eclipse32/workspace/jbpmtest3/bin/
    5.ClassLoader.getSystemResource£¨""£©
    µÃµ½µÄÒ²Êǵ±Ç°ClassPathµÄ¾ø¶ÔURI·¾¶¡£
    È磺file£º/D£º/java/eclipse32/workspace/jbpmtest3/bin/
    ÎÒÍƼöʹÓÃThread.currentThread£¨£©.getContextClassLoader£¨£©.getResource£¨""£©À´µÃµ½µ±Ç°µÄclasspathµÄ¾ø¶Ô·¾¶µÄURI±íʾ·¨¡£
    ÔÚWebÓ¦ÓóÌÐòÖУ¬ÎÒÃÇÒ»°ãͨ¹ý


Ïà¹ØÎĵµ£º

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

javaÊý¾Ý¿âÉè¼ÆÖеÄ14¸ö¼¼ÇÉ

  ÏÂÊöÊ®Ëĸö¼¼ÇÉ£¬ÊÇÐí¶àÈËÔÚ´óÁ¿µÄÊý¾Ý¿â·ÖÎöÓëÉè¼Æʵ¼ùÖУ¬Öð²½×ܽá³öÀ´µÄ¡£¶ÔÓÚÕâЩ¾­ÑéµÄÔËÓ㬶ÁÕß²»ÄÜÉú°ïÓ²Ì×£¬ËÀ¼ÇÓ²±³£¬¶øÒªÏû»¯Àí½â£¬ÊµÊÂÇóÊÇ£¬Áé»îÕÆÎÕ¡£²¢Öð²½×öµ½£ºÔÚÓ¦ÓÃÖз¢Õ¹£¬ÔÚ·¢Õ¹ÖÐÓ¦Óá£
      1. ԭʼµ¥¾ÝÓëʵÌåÖ®¼äµÄ¹Øϵ
¡¡¡¡
    &nbs ......

JavaÓëTSCÌõÐÎÂë´òÓ¡»ú(Ðø)

JavaÓëTSCÌõÐÎÂë´òÓ¡»ú(Ðø)
 

ÓÖ³öÏÖÁ½¸öÎÊÌâ:
1,sendcommandÃüÁîʹÓò¿·Ö³É¹¦£¬¿ÉÒÔÉèÖÃdirection 1,1ʹ´òÓ¡Ò³ÍêÈ«¾µÃ棬µ«ÊÇÈ´²»ÄÜʹÓÃcircle´òÓ¡³öԲȦȦ¡£
2£¬ÓÖÒ»´ÎÔÔµ½ÁËlinux-windowsÊÖÀÔÚwindows¿ª·¢Íê³Éºó£¬linux²»ÄÜʶ±ðtsclib.dll¡£ÔΣ¡
3£¬
×öjava-tsc´òÓ¡ÌõÐÎÂëÓöµ½Á˺ܶàÀ§ÄÑ£¬ÍøÉÏ×ÊÁϲ»Ò ......

·â×°¸øjavaʹÓÃµÄ web±¨±í rm webrm ±¨±í1.0.0.1°æ

°æ±¾£º1.0.0.1 
http://download.csdn.net/source/1856731
ÍêÈ«¼æÈÝ Ç°Ò»¸ö°æ±¾
Éý¼¶Ê±Í¬Ê±¸üРRMVIEWP.CAB¡¢rmview1.0.0.1.jar£¨É¾³ýÇ°Ò»¸ö°æ±¾µÄjar°ü£¬Ãû³ÆΪ£ºRMVIEW.JAR£©
ʹÓ÷½·¨²»±ä£¬ÎÞ·ìÉý¼¶¡£
¸üÐÂÈÕÖ¾£º
1£® ÐÞÕý²¿·ÖÓû§Ê¹ÓÃÖÐÓõ½²å¼þµÄ·Ö¸î·ûºÅ£¬ÖÂʹ²å¼þ²»ÄÜÕý³£Ê¹Ó㬱¾°æÖмäʹÓÃxml¸ñ ......

Java Web¿ìËÙÈëÃÅ

ÕâÊÇÒ»´ÎÅàѵ×ܽᣬÊÇÎÒÔÚѧϰµÄ¹ý³ÌÖмǼÏÂÀ´µÄ£¬·Ç³£ÍêÕû£¬ÎҸоõÊʺϳõѧÕßѧÉú¿ÉÄܸüÐèÒªËùÒÔ·¢±í £¬Çë¶à¸øÓëÆÀ¼Û-------
 ---------WangMX
¡¶Java Web³ÌÐòÉè¼Æ»ù´¡½Ì³Ì¡·µÚ1Õ£©
1 JSP ºÍ JavaµÄ¹Øϵ
   Ò»°ãJavaÖ¸µÄ±ê×¢°æ Java SE
   ÁíÍâÁ½¸ö°æ±¾£ºJava EE ºÍ Java ME
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ