Java¾ø¶ÔºÃÎÄ
1£® ¹ØÓÚ¶¯Ì¬¼ÓÔØ»úÖÆ??
ѧϰJava±ÈC++¸üÈÝÒ×Àí½âOOPµÄ˼Ï룬±Ï¾¹C++»¹»ìºÏÁ˲»ÉÙÃæÏò¹ý³ÌµÄ³É·Ö¡£ºÜ¶àÈ˶¼Äܱ³³öÀ´JavaÓïÑÔµÄÌص㣬ËùνµÄ¶¯Ì¬¼ÓÔØ»úÖƵȵȡ£µ±È»¸ÅÄîÍùÍùÊÇÏȼÇס¶øºóÏû»¯µÄ£¬¿ÉÓжàÉÙÈËÕæÕýÈ¥Ìå»á¹ý¶¯Ì¬¼ÓÔصĻúÖÆ£¬ÊÔͼȥѰÕÒ¹ýÆäÖеÄϸ½ÚÄØ? Ìṩ´ó¼ÒÒ»¸ö·½·¨£º
ÔÚÃüÁîÐд°¿ÚÔËÐÐJava³ÌÐòµÄʱºò£¬¼ÓÉÏÕâ¸öºÜÓÐÓõIJÎÊý£º
java -verbose *.class
ÕâÑù»áÇåÎúµÄ´òÓ¡³ö±»¼ÓÔصÄÀàÎļþ£¬´ó²¿·ÖÊÇjdk×ÔÉíÔËÐÐÐèÒªµÄ£¬×îºó¼¸ÐлáÃ÷ÏԵĿ´µ½×Ô¼ºÓõ½µÄÄǼ¸¸öÀàÎļþ±»¼ÓÔؽøÀ´µÄ˳Ðò¡£¼´Ê¹ÄãÉùÃ÷ÁËÒ»¸öÀà¶ÔÏ󣬲»ÊµÀý»¯Ò²²»»á¼ÓÔØ£¬ËµÃ÷Ö»ÓÐÕæÕýÓõ½ÄǸöÀàµÄʵÀý¼´¶ÔÏóµÄʱºò£¬²Å»áÖ´ÐмÓÔØ¡£ÕâÑùÊDz»ÊÇ´ó¼ÒÉÔ΢ÄÜÃ÷°×Ò»µã¶¯Ì¬¼ÓÔØÁËÄØ£¿^_^
2£® ¹ØÓÚÑ°ÕÒclassÎļþÔÀí??
½¨Òé´ó¼ÒÔÚÈëÃŵÄʱºòÔÚÃüÁîÐд°¿Ú±àÒëºÍÔËÐУ¬²»Òª½èÖúJCreator»òÕßEclipseµÈIDEÈ¥°ïÖú×öÄÇЩÊÂÇé¡£³¢ÊÔ×Ô¼ºÕâÑù×ö£º
javac -classpath yourpath *.java
java -classpath yourpath *.class
Ò²ÐíºÜ¶àÈ˶¼ÄÜ¿´¶®£¬ÉèÖÃclasspathµÄÄ¿µÄ¾ÍÊǸæËß±àÒëÆ÷È¥ÄÄÀïÑ°ÕÒÄãµÄclassÎļþ. ²»¹ýÖÁÉÙ±ÊÕß½ñÈÕ²ÅŪ¶®JVMÈ¥²éѯÀàµÄÔÀí£¬±àÒëÆ÷¼ÓÔØÀàÒªÒÀ¿¿classloader£¬ ¶øclassloaderÓÐ3¸ö¼¶±ð£¬´Ó¸ßµ½µÍ·Ö±ðÊÇBootClassLoader(Ãû×Ö¿ÉÄܲ»×¼È·) , ExtClassLoader, AppClassLoader.
Õâ3¸ö¼ÓÔØÆ÷·Ö±ð¶ÔÓ¦×űàÒëÆ÷ȥѰÕÒÀàÎļþµÄÓÅÏȼ¶±ðºÍ²»Í¬µÄ·¾¶£ºBootClassLoader¶ÔÓ¦jre/classes·¾¶£¬ÊDZàÒëÆ÷×îÓÅÏÈÑ°ÕÒclassµÄµØ·½
ExtClassLoader¶ÔÓ¦jre/lib/ext·¾¶£¬ÊDZàÒëÆ÷´ÎÓÅÏÈÑ°ÕÒclassµÄµØ·½
AppClassLoader¶ÔÓ¦µ±Ç°Â·¾¶£¬ËùÒÔÒ²ÊDZàÒëÆ÷ĬÈÏÕÒclassµÄµØ·½
Æäʵ´ó¼Ò¿ÉÒÔ×Ô¼ºÐ´¸ö³ÌÐò¼òµ¥µÄ²âÊÔ£¬¶ÔÈκÎclass£¬ÀýÈçA,
µ÷ÓÃnew A().getClass().getClassLoader().toString() ´òÓ¡³öÀ´¾Í¿ÉÒÔ¿´µ½£¬°ÑclassÎļþ·ÅÔÚ²»Í¬µÄ·¾¶ÏÂÔÙ´ÎÖ´ÐУ¬¾Í»á¿´µ½Çø±ð¡£Ìرð×¢ÒâµÄÊÇÈç¹û´òÓ¡³öÀ´ÊÇnull¾Í±íʾµ½ÁË×î¸ß¼¶ BootClassLoader, ÒòΪËüÊÇC++±àдµÄ£¬²»´æÔÚJava¶ÔÓ¦µÄÀà¼ÓÔØÆ÷µÄÃû×Ö¡£
Ñ°ÕÒµÄ˳ÐòÊÇÒ»ÖÖÏòÉÏÓػصÄ˼Ï룬¼´Èç¹û±¾¼¶±ðÕÒ²»µ½£¬¾ÍÖ»ÄÜÈ¥±¾¼¶±ðÖ®ÉϵÄÕÒ£¬²»»áÏòÏÂÑ°ÕÒ¡£²»¹ýËƺõ´ÓJdk1.4µ½Jdk1.6ÕâÒ»ÌصãÓÖÓиı䣬ûÓÐÕÒµ½Ïêϸ×ÊÁÏ¡£ËùÒԾͲ»¾ÙÀý×ÓÁË¡£¸æËß´ó¼ÒÉè¼ÆÕâÖÖÌåϵµÄÊÇSun¹«Ë¾Ôø¾µÄ¼¼ÊõºËÐŬÁ¦ÏÈÉú£¬Ò»¸ö´¿ÖÖ»ªÈËŶ£¡^_^
ÕâÑùÏ£Íû´ó¼Ò²»ÖÁÓÚÃÔ»óΪʲô×ܱ¨´íÕÒ²»µ½ÀàÎļþ£¬²»¹ÜÊÇ×Ô¼ºÐ´µÄ»¹Êǵ¼ÈëµÄµÚÈý·½µÄjarÎļþ£¨J2eeÖо³£ÐèÒªµ¼ÈëµÄ£
Ïà¹ØÎĵµ£º
ÔÚÐÅϢʱ´ú£¬ÍøÂç¼¼ÊõÓ¦ÓÃÒѷdz£ÆÕͨ¡£ÆäÖзdz£¶àÓ¦Óö¼ÒÀÀµÓÚ´ÓÒ»¸öÖ÷»úÏò¶à¸öÖ÷»ú»ò´Ó¶à¸öÖ÷»úÏò¶à¸öÖ÷»ú·¢ËÍͬһÐÅÏ¢µÄÄÜÁ¦£¬ÔÚInternetÉÏ·Ö·¢µÄÊýÄ¿¿ÉÄÜ´ïÊýÊ®Íǫ̀£¬ÕâЩ¶¼ÐèÒª¸ü¸ßµÄ´ø¿í£¬²¢ÇÒ´ó´ó³¬³öÁ˵¥²¥µÄÄÜÁ¦¡£Ò»ÖÖÄÜ×î´óÏ޶ȵØÀûÓÃÏÖÓдø¿íµÄÖØÒª¼¼ÊõÊÇIP×é²¥¡£
1£®IP×é²¥¼¼ÊõµÄ¸ÅÄî
IP×é²¥¼¼Êõ£¬ÊÇÒ»ÖÖÔÊ ......
For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Reposi ......
ORACLEµÄѧϰÒѾ¸æÒ»¶Î茖£¬½ñÌìÒѾ¿ªÊ¼HIBERNATEµÄѧϰ£¬×ÜÌå¸Ð¾õͦÁ¼ºÃµÄ£¬ËäÈ»ºÜ¶àµÄ֪ʶ²»ÄܼÇס£¬µ«ÊÇÔÚʹÓõÄʱºòÄܹ»Ñ¸ËÙµÄÕÒ¶Ô·½·¨À´½â¾öÏàÓ¦µÄÎÊÌ⣬ֻҪÇÚ¼ÓÁ·Ï°£¬¾Í¿ÉÒÔ¼Çס¡£Ö»²»¹ý£¬Ê±¼äÓÐ珢£¬HIBERNATEµÄ¿Î³ÌÒ²Ö»ÓÐÈýÌìµÄʱ¼ä£¬ËùÒÔÔÚÕâÆÚ¼äÎÒµÄÈÎÎñÊǾ¡Á¿ÎüÒý£¬ÔÚ»¨·Å¼ÙµÄʱºòÀ´¸´Ï° ......
ÔںܶàʱºòÎÒÃÇÐèÒª½«Ò»¸ö¸øÁËÍêÕû·¾¶µÄÀà¶ÔÏó×Ö·û´®×ª»»³ÉÒ»¸öÀàµÄʵÀý¶ÔÏ󣬾ͱÈÈç˵ÓÐÒÔÏÂÕâÑùµÄÒ»¸ö×Ö·û´®
String menAction= "gef.putin.step.ui.SystemMenuTest(xiajiaji)"ÔÚ¸ÃÀàÖÐÐèÒªÓÐÓÐÒ»¸ö×Ö·û´®¸ñʽµÄ²ÎÊý£¬µ±È»¶à¸ö²ÎÊýÒ²¿ÉÒÔ£¬ÎÒÒѾ½«¶à¸ö²ÎÊýµÄ¿¼ÂǽøÈ¥£¬¶Ô¸Ä×Ö·û´®½øÐнâÎö¾Í¿ÉÒÔת»»³ÉÀàµÄʵÀý¶Ô ......
Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2
½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\Program Files£©¡£
ÉèÖÃ Classpath
JDBC Çý¶¯³ÌÐò²¢Î´°üº¬ÔÚ Java SDK ÖС£Òò´Ë£¬Èç¹ûҪʹÓøÃÇý¶¯³ÌÐò£¬±ØÐ뽫 classpath ......