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

Àí½âJava ClassLoader»úÖÆ

µ±JVM£¨JavaÐéÄâ»ú£©Æô¶¯Ê±£¬»áÐγÉÓÉÈý¸öÀà¼ÓÔØÆ÷×é³ÉµÄ³õʼÀà¼ÓÔØÆ÷²ã´Î½á¹¹£º
       bootstrap classloader
                |
       extension classloader
                |
       system classloader
bootstrap classloader £­Òýµ¼£¨Ò²³ÆΪԭʼ£©Àà¼ÓÔØÆ÷£¬Ëü¸ºÔð¼ÓÔØJavaµÄºËÐÄÀà¡£ÔÚSunµÄJVMÖУ¬ÔÚÖ´ÐÐjavaµÄÃüÁîÖÐʹÓÃ-XbootclasspathÑ¡Ïî»òʹÓà - DÑ¡ÏîÖ¸¶¨sun.boot.class.pathϵͳÊôÐÔÖµ¿ÉÒÔÖ¸¶¨¸½¼ÓµÄÀà¡£Õâ¸ö¼ÓÔØÆ÷µÄÊǷdz£ÌØÊâµÄ£¬Ëüʵ¼ÊÉϲ»ÊÇ java.lang.ClassLoaderµÄ×ÓÀ࣬¶øÊÇÓÉJVM×ÔÉíʵÏֵġ£´ó¼Ò¿ÉÒÔͨ¹ýÖ´ÐÐÒÔÏ´úÂëÀ´»ñµÃbootstrap classloader¼ÓÔØÁËÄÇЩºËÐÄÀà¿â£º
   URL[] urls=sun.misc.Launcher.getBootstrapClassPath().getURLs();
   for (int i = 0; i < urls.length; i++) {
     System.out.println(urls.toExternalform());
   }
ÔÚÎҵļÆËã»úÉϵĽá¹ûΪ£º
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/dom.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/sax.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/xalan-2.3.1.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/xercesImpl-2.0.0.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/xml-apis.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/endorsed/xsltc.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/rt.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/i18n.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/sunrsasign.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/jsse.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/jce.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/lib/charsets.jar
Îļþ:/C:/j2sdk1.4.1_01/jre/classes
Õâʱ´ó¼ÒÖªµÀÁËΪʲôÎÒÃDz»ÐèÒªÔÚϵͳÊôÐÔCLASSPATHÖÐÖ¸¶¨ÕâЩÀà¿âÁË°É£¬ÒòΪJVMÔÚÆô¶¯µÄʱºò¾Í×Ô¶¯¼ÓÔØËüÃÇÁË¡£
extension classloader £­À©Õ¹Àà¼ÓÔØÆ÷£¬Ëü¸ºÔð¼ÓÔØJREµÄÀ©Õ¹Ä¿Â¼£¨JAVA_HOME/jre/lib/ext»òÕßÓÉjava.ext.dirsϵͳÊôÐÔÖ¸¶¨µÄ£©ÖÐJARµÄÀà°ü¡£ÕâΪÒýÈë³ýJavaºËÐÄÀàÒÔÍâµÄй¦ÄÜÌṩÁËÒ»¸ö±ê×¼»úÖÆ¡£ÒòΪĬÈϵÄÀ©Õ¹Ä¿Â¼¶ÔËùÓдÓͬһ¸öJREÖÐÆô¶¯µÄJVM¶¼ÊÇͨÓõģ¬ËùÒÔ·ÅÈëÕâ¸öĿ¼µÄ JARÀà°ü¶ÔËùÓеÄJVMºÍsystem classloader¶¼ÊǿɼûµÄ¡£ÔÚÕâ


Ïà¹ØÎĵµ£º

˼¿¼ PHP+MYSQLµÄOAΪºÎûÓÐJavaµÄֵǮ?


ÏÖÔÚÊг¡ÉϵÄoa»ù±¾ÉϿɹé½áΪÁ½´óÕóÓª£¬¼´phpÕóÓªºÍjavaÕóÓª¡£µ«¶Ô½Ó´¥oa²»¾ÃµÄÓû§À´Ëµ£¬¿´µ½µÄÍùÍùÖ»ÊÇËüÃǵıíÏֻ࣬ÊÇÃ÷ÏԵļ۸ñ²îÒ죬ȴºÜÄÑ¿´³öËüÃÇÖ®¼äµÄʵ¼Ê²îÒì¡£Æäʵ£¬ PHP + MYSQL ²»ÖµÇ®²»½ö½ö¾ÖÏÞÓÚoaÈí¼þ£¬¶øÊÇÕûÌåÉÏPHP + MYSQL¿ª·¢µÄÈí¼þ¶¼²»Èçjava¿ª·¢µÄÈí¼þֵǮ¡£ÎªÊ²Ã´PHP + MYSQL µÄOAΪʲô²»ÖµÇ®Ä ......

Java reflection´úÂëʾÀý

package com.mywebtest.common;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
/**
 * Java reflection ·Ç³£ÓÐÓã¬ËüʹÀàºÍÊý¾Ý½á¹¹ÄÜ°´Ãû³Æ¶¯Ì¬¼ìË÷Ïà¹ØÐÅÏ¢£¬²¢ÔÊÐíÔÚÔËÐÐ× ......

java Ḭ̈߳²È«

Ḭ̈߳²È«
     Ö»ÓÐÔÚµ¥Àý²¢·¢µÄÇé¿öϲŻá³öÏÖḬ̈߳²È«ÎÊÌ⣬ÒýÆðÎÊÌâµÄÖ÷ÒªÔ­Òò¾ÍÔÚÓÚ¶ÔÏóµÄ×ÊÔ´¹²Ïí(ÈçʵÀý±äÁ¿µÈ)£¬²»¹ý¾Ö²¿±äÁ¿ÊÇḬ̈߳²È«µÄ¡£Òò´ËÔÚ³ÌÐòÉè¼ÆµÄʱºò¾¡Á¿²»ÒªÓÃʵÀý±äÁ¿¡£²úÉúÕâÑùÔ­ÒòÔÚÓÚjavaµÄÄÚ´æ·ÖÅä»úÖÆ£¬ÊµÀý±äÁ¿ÊÇ´æ·ÅÔÚ¶ÑÄÚ´æÖеÄËùÓÐÏ̹߳²Ïí£¬¶øÿ¸öÏß³ÌÒ²¶¼ÓÐ×Ô¼ºµÄÏß³ ......

javaÖÐʹÓÃbase64±àÂ룭£­£­£­

     base64±àÂëÔÚjavaÖÐÓкܺõÄÖ§³Ö£¬µ«ÐèÒªÏÂÔØjar°ü£¬ÀÁµÄÕÒjarÁË£¬ÓÚÊÇÕÒµ½ÁËÔ´Â룬ºÇºÇ£¬Õâ¸ö²»Å·³µÄ»°»¹¿ÉÒÔÑо¿ÏÂ
´úÂëÈçÏ£º
public class Base64 {
    private static final byte[] encodingTable = {
          & ......

JAVAÅÅÐòËã·¨£¨·ÇÔ­´´£©


JAVAÅÅÐòËã·¨£¨·ÇÔ­´´£©
package Sort;
class Data {
 Comparable key;
 Object value;
 public Data() {
 }
 
 public Data(Data data){
   this.key=data.key;
   this.value=data.value;
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ