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

java Ïà¶Ô·¾¶ ¾ø¶Ô·¾¶ classes bin ¸ùĿ¼

³¢ÊÔÓÃDOM4j½âÎöspringÅäÖÃÎļþʱ,µÚÒ»²½¶ÁÈ¡Îļþʱ£¬»ñȡ·¾¶¾ÍÓöµ½ÁËÎÊÌ⣬¡£¡£¡£¾­¹ýgoogleÁËn+log n ´Î¸öÒ³Ã棬²ÅËãÓÐÁ˸ö´ÖdzµÄÈÏʶ£¬ÏÂÃæ¾ÍÈÃÎÒÓüò¶ÌµÄ»°ÓïÀ´×ܽáһϣ¨ºÃÏñÕâ¶Î¾ÍÈ«ÊÇ·Ï»°¡£¡£¡££©¡£¡£¡£
1¡¢springµÄÅäÖÃÎļþ´æ·ÅλÖÃÓÉweb.xmlÀïµÄcontextConfigLocationÀ´È·¶¨£¬Ò»°ãÊÇ·ÅÔÚweb-inf»òÕßÊÇsrc¸ùĿ¼ÏÂ
2¡¢¹ØÓÚsrcÎļþ¼ÐÀïµÄÎļþµÄ·¢²¼:source folderϵÄ.javaÎļþ£¬Éú³ÉµÄ.classÎļþ·ÅÔÚoutput folderÖС£¶ø½«source folderÖеķÇ.javaÎļþÖ±½Ó¿½±´µ½output folder£¨eclipse»áÖ±½Ó¿½±´È«²¿µÄ·Ç.javaÎļþ£¬intellij IDEA¿ÉÒÔÅäÖÿ½±´ÄÄЩÀ©Õ¹ÃûµÄÎļþ£©¡£ outputÎļþ¼ÐÒ»°ãÖ¸µÄÊÇc/sµÄbinºÍb/sµÄclasses¡£
3¡¢ÓÃSAXReader.reader¶ÁȡʱÐèÒªÖªµÀÎļþµÄ·¾¶ ¡£
ÎÒÁгöÒ»¶Î´úÂ룬´ó¼Ò¸ÐÊÜһϰÉ
System.out.println(this.getClass().getClassLoader().getResource("com/lavasoft/res/a.txt"));
System.out.println(this.getClass().getResource("/com/lavasoft/res/a.txt"));
System.out.println(this.getClass().getResource("").getPath());
System.out.println(this.getClass().getResource("/").getPath());
System.out.println(this.getClass().getClassLoader().getResource("").getPath());
System.out.println(Thread.currentThread().getContextClassLoader().getResource("").getPath());
System.out.println(System.getProperty("user.dir")); 
getclass()Êǵ±Ç°µÄÀàʵÀý£¬µÃµ½µÄÊÇsrcϵ±Ç°ÀàµÄĿ¼£»getclassloader()ÊÇÀàµÄ×°ÔØÆ÷£¬µÃµ½µÄÊÇsrc¸ùĿ¼¡£"/"±íʾµÄÊǸùĿ¼¡£
web-infĿ¼ÈçºÎÈ¡µÃ»¹ÔÚÃþË÷ÖУ¬¸÷λÓÐÖªµÀµÄ£¬Çë²»Áߴͽ̡£
×îºóÌùһƪÎҸоõ×ܽáµÃºÜºÃµÄÎÄÕ£º
http://imyself.javaeye.com/blog/460706
ÔÙÀ´Ò»Æª Àà¼ÓÔØ·¾¶ Ô­ÀíµÄÎÄÕ jwitch£º
http://www.blogjava.net/Unmi/archive/2007/09/10/144101.html
»¹ÓÐÕâƪҲÐèÒªÑо¿Ò»Ï£º
http://www.javaeye.com/topic/7871


Ïà¹ØÎĵµ£º

¹ØÓÚjavaµÄhashCode·½·¨

JavaÖеļ¯ºÏ£¨Collection£©ÓÐÁ½À࣬һÀàÊÇList£¬ÔÙÓÐÒ»ÀàÊÇSet¡£ÄãÖªµÀËüÃǵÄÇø±ðÂð£¿Ç°Õß¼¯ºÏÄÚµÄÔªËØÊÇÓÐÐòµÄ£¬ÔªËØ¿ÉÒÔÖظ´£»ºó
ÕßÔªËØÎÞÐò£¬µ«ÔªËز»¿ÉÖظ´¡£ÄÇôÕâÀï¾ÍÓÐÒ»¸ö±È½ÏÑÏÖصÄÎÊÌâÁË£ºÒªÏë±£Ö¤ÔªËز»Öظ´£¬¿ÉÁ½¸öÔªËØÊÇ·ñÖظ´Ó¦¸ÃÒÀ¾ÝʲôÀ´ÅжÏÄØ£¿Õâ¾ÍÊÇ
Object.equals·½·¨ÁË¡£µ«ÊÇ£¬Èç¹ûÿÔö¼ÓÒ»¸öÔªËØ ......

ubuntu9.10ÅäÖÃjava»·¾³

ÔÚ9.10ÖпÉÒÔÔÚÖÕ¶ËÖÐʹÓÃapt-getÃüÁî½øÐа²×°¡£ÕâÖÖ·½·¨±È½Ï¼òµ¥¡£²»¹ý¸öÈËÈÏΪ ¶ÔÓÚ³õѧÕߣ¬»¹ÊÇÊÖ¶¯°²×°±È½ÏºÃ£¬¿ÉÒÔÊìϤºÜ¶à¶«Î÷¡£
1.ÏÂÔØjdkºÍjre
µÇ¼sunÍøÕ¾http://java.sun.com/javase/downloads/index.jsp£¬ÏÂÔØjdk-6u18-linux-i586.binºÍjre-6u18-linux-i586.bin¡£×¢ÒâÔÚ¹ÙÍøÖÐ
ÓÐÁ½¸öÏÂÔصØÖ·£¬Ò»¸öÊÇjdk-6u1 ......

JavaÊý¾Ý±¨±à³ÌÖ®×é²¥

ת×ÔÆäËûÍøÕ¾
ºËÐÄÌáʾ£ºÔÚÐÅϢʱ´ú£¬ÍøÂç¼¼ÊõÓ¦ÓÃÒѾ­ºÜÆÕͨ¡£ÆäÖкܶàÓ¦Óö¼ÒÀÀµÓÚ´ÓÒ»¸öÖ÷»úÏò¶à¸öÖ÷»ú»òÕß´Ó¶à¸öÖ÷»úÏò¶à¸öÖ÷»ú·¢ËÍͬһÐÅÏ¢µÄÄÜÁ¦£¬ÔÚInternet
ÉÏ·Ö·¢µÄÊýÄ¿¿ÉÄÜ´ïÊýÊ®Íǫ̀£¬ÕâЩ¶¼ÐèÒª¸ü¸ßµÄ´ø¿í£¬²¢ÇÒ´ó´ó³¬³öÁ˵¥²¥µÄÄÜÁ¦¡£Ò»ÖÖÄÜ×î´óÏ޶ȵØÀûÓÃÏÖÓдø¿íµÄÖØ
ÔÚÐÅϢʱ´ú£¬ÍøÂç¼¼ÊõÓ¦ÓÃÒѾ­ºÜÆÕÍ ......

´óרÉúJAVAµÄÕâÌõ·

     ÎÒÓÐÒ»ÍòԪǮ£¬ÊǽèµÄ£¡ÎÒ½èÁËÕâÒ»Íò¿éÇ®×¼±¸È¥±±¾©¼ÌÐøѧϰ¡£
     ÎÒÊÇÒ»¸ö´óרÉú£¬²»ÈëÁ÷ÎÒѧУ£¡ËäÈ»ÎÒÏàÐÅÒ»¸öÈ˵ÄŬÁ¦ÄܸıäÃüÔË£¡ËùÒÔÎÒÒ»Ö±¶¼ÔÚŬÁ¦µÄѧϰJAVA¼¼Êõ£¬Ï£ÍûÄÜÔÚÕâÌõ·ÉÏ×ߵĸüÔ¶£¡ÎÒÓÐÅ®ÅóÓÑ£¬¶ÔÎҺܺã¬Ò²ºÜÖ§³ÖÎÒ£¡µ«ÎÒ´Ó¸ñÁ¦¿Õµ÷´ÇÖ°£¬ÎÒ¾ÍÑ¡ÔñÁËJA ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ