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

Java ClassLoader ·ÖÎö

ÏÈÌùÒ»¶Î
Java
»ù±¾½á¹¹
Java
½á¹¹°üÀ¨Ëĸö²»Í¬¶øÓÖÏà¹ØµÄ²¿·Ö£º
Java
ÓïÑÔ¡¢
class
Îļþ¸ñʽ¡¢Ó¦ÓóÌÐò½Ó
¿Ú¡¢ÐéÄâ»ú
ÆäÖУ¬ÐéÄâ»úµÄÖ÷ÒªÈÎÎñÊÇÔÚ³ÌÐòÔËÐÐÖÐÐèÒªµÄʱºòµ÷ÓÃ
class
Îļþ²¢Ö´ÐÐÆäÖеÄ×Ö½ÚÂë¡£Ò»¸ö
Java
Ó¦
ÓÃÓÐÁ½ÖÖ
class loader
£º
the system class loader
ºÍ
class loader objects
¡£
The
primordial class loader
ͨ³£×°
Ôر¾µØ´ÅÅÌÉÏ°üÀ¨
Java API
ÔÚÄÚµÄÐÅÈÎÀ࣬ËüÊÇÐéÄâ»úµÄÒ»²¿·Ö¡£ÔÚÔËÐÐʱ£¬»¹¿ÉÒÔ¶¨ÖÆ
class loader objects
À´¼ÓÔØÆäËû£¬²»ÊÇÐéÄâ»úµÄÒ»²¿·Ö£¬¶øÊdzÌÐòÔËÐеÄÒ»²¿·Ö¡£
 
Class
Îļþ½á¹¹
Java class
ÎļþµÄ±êÖ¾£º¿ªÍ·Ëĸö×Ö½ÚΪ
0xCAFEBABE
 
ClassLoader
ClassLoader
¸ºÔð¶¨Î»²¢µ¼Èë
class
µÄ
¶þ½øÖÆÊý¾Ý£¬²¢ÑéÖ¤ÆäÕýÈ·ÐÔ£¬·ÖÅä³õʼ»¯Àà³ÉÔ±±äÁ¿µÄ´æ´¢¿Õ¼ä²¢³õʼ»¯µÈµÈ¡£ËùÓеÄ
class loader
¶¼±ØÐëͨ¹ýÒÔÏÂÈý¸ö·½·¨À´Íê³ÉÒÔÉÏÈÎÎñ¡£
protected final
Class
defineClass(
String
 name,byte[] b, int off, int len,
                                 

ProtectionDomain
 protectionDomain)
                          
throws
ClassFormatError
½«×Ö½ÚÂëת±äΪ
Class
ʵ
Àý£¬Õâ¸öʵÀý±ØÐë¾­¹ý½âÎö²ÅÄܹ»Ê¹Óá£
 
protected
final
Class
findSystemClass(
String
 name)
                               throws

ClassNotFoundException
Èç¹û
the primordial class loader
ÒѾ­¼ÓÔسɹ¦´ËÀ࣬Ôò·µ»ØÆäË÷Òý£¬·ñÔòÅ׳ö
ClassNotFoundException
¡£
protected final void
resolveClass(
Class
 c)
½«ÀàʵÀý³õʼ»¯
 
ClassFormatError
µ±ÐéÄâ»úÊÔͼ¶ÁÈ¡Ò»¸ö
class
ÎÄ
¼þ·¢ÏÖÎļþ¸ñʽ´íÎó»òÕß²»Äܱ»½âÎöʱÅ׳ö´Ë´íÎó


Ïà¹ØÎĵµ£º

ZlibѹËõËã·¨ÔÚjavaÉϵÄÓ¦ÓÃ

JAVAʵÏÖ
¡¡¡¡ÔÚJDKÖУ¬ÔÚjava.util.zip°üÖÐÒѾ­ÄÚÖÃÁËZLIBµÄʵÏÖ£¬Ê¾Àý´úÂëÈçÏ£º
1//½âѹ
2 public String decompressData(String encdata) {
3 try {
4 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 
5 InflaterOutputStream zos = new InflaterOutputStream(bos); 
6 zo ......

JavaÖÐÏà¶Ô·¾¶£¬¾ø¶Ô·¾¶ÎÊÌâ×ܽá


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

javaÉú³ÉÊý×ÖÖ¤Êé·½·¨

Java ÖÐÉú³ÉÊý×ÖÖ¤ÊéÒ²ºÜ¼òµ¥µÄ¡£
1¡¢´´½¨Ö¤Êé
Java ÖÐµÄ keytool.exe £¨Î»ÓÚ JDKBin Ŀ¼Ï£©¿ÉÒÔÓÃÀ´´´½¨Êý×ÖÖ¤Ê飬ËùÓеÄÊý×ÖÖ¤ÊéÊÇÒÔÒ»ÌõÒ»Ìõ(²ÉÓñðÃûÇø±ð)µÄÐÎʽ´æÈëÖ¤Êé¿âµÄÖУ¬Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé°üº¬¸ÃÌõÖ¤ÊéµÄ˽Կ£¬¹«Ô¿ºÍ¶ÔÓ¦µÄÊý×ÖÖ¤ÊéµÄÐÅÏ¢¡£Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé¿ÉÒÔµ¼³öÊý×ÖÖ¤ÊéÎļþ£¬Êý×ÖÖ¤ÊéÎļþÖ»°üÀ¨ ......

java web±ÊÊÔ


1£®Hibernate¹¤×÷Ô­Àí¼°ÎªÊ²Ã´ÒªÓã¿ 
Ô­Àí£º 
1.¶ÁÈ¡²¢½âÎöÅäÖÃÎļþ 
2.¶ÁÈ¡²¢½âÎöÓ³ÉäÐÅÏ¢£¬´´½¨SessionFactory 
3.´ò¿ªSesssion 
4.´´½¨ÊÂÎñTransation 
5.³Ö¾Ã»¯²Ù×÷ 
6.Ìá½»ÊÂÎñ 
7.¹Ø±ÕSession 
8.¹Ø±ÕSesstionFactory 
ΪʲôҪÓ㺠
1. ¶ÔJDB ......

JAVAÅäÖû·¾³±äÁ¿

ÔÚwindows×ÀÃæÉÏÓÒ»÷“ÎҵĵçÄÔ” —> “ÊôÐÔ” —> “¸ß¼¶” —> “»·¾³±äÁ¿”£¬Ôړϵͳ±äÁ¿”ÀïÎÒÃÇ¿ÉÒÔ¿´µ½ÏµÍ³µÄ¸÷¸ö»·¾³±äÁ¿µÄÖµ¡£Ë«»÷ij¸ö±äÁ¿Ãû¿ÉÒÔÐ޸ıäÁ¿Öµ£¬±äÁ¿ÖµÖ®¼äÓÓ;”¸ô¿ª¡£ÎÒÃÇ»¹¿ÉÒԓн¨”Ô­ÏÈÃ»Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ