update java alternatives ¸ü¸ÄĬÈÏJava»·¾³
Ubuntu/debian ¸ü¸ÄĬÈÏJava»·¾³
ÎҵĵçÄÔÀï°²×°ÁËÁ½¸ö°æ±¾µÄJava£¬Ò»¸öÊÇjava-6-sun£¬»¹ÓÐÒ»¸öÊÇjava-gcj
gcjÊÇÔÚJVM·Ç³£»ºÂýµÄʱºòµ®ÉúµÄ£¬Ëû¿ÉÒÔ°ÑJava´úÂë±àÒë³É±¾µØ´úÂë £¬¹ØÓÚgcjÔÝÇÒ˵Õâô¶à£¬»Øµ½Ö÷Ìâ¡£
ÐÞ¸ÄĬÈÏjava»·¾³Óõ½ÃüÁîupdate-java-alternatives
1¡¢Ê¹ÓÃupdate-java-alternatives -l²é¿´Ä¿Ç°ÒѾ°²×°ÔÚϵͳÀïµÄJava°æ±¾
$ update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj
2¡¢Ê¹ÓÃupdate-java-alternatives -s <jname>ÉèÖÃĬÈÏjava°æ±¾£¬jnameÊÇͨ¹ýupdate-java-alternatives -lÃüÁî²éѯ³öÀ´µÄ¡£ÀýÈçÎÒҪʹÓÃsun jdk×÷ΪĬÈÏjava»·¾³£¬¾ÍÊäÈëÈçÏÂÃüÁ
$ sudo update-java-alternatives -s java-6-sun
[sudo] password for leo:
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/appletviewer”À´Ìṩ“appletviewer”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/apt”À´Ìṩ“apt”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/extcheck”À´Ìṩ“extcheck”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/HtmlConverter”À´Ìṩ“HtmlConverter”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/idlj”À´Ìṩ“idlj”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jarsigner”À´Ìṩ“jarsigner”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jar”À´Ìṩ“jar”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/javac”À´Ìṩ“javac”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/javadoc”À´Ìṩ“javadoc”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/javah”À´Ìṩ“javah”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/javap”À´Ìṩ“javap”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jconsole”À´Ìṩ“jconsole”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jdb”À´Ìṩ“jdb”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jhat”À´Ìṩ“jhat”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jinfo”À´Ìṩ“jinfo”¡£
ʹÓÓ/usr/lib/jvm/java-6-sun/bin/jmap”À´Ìṩ“jmap”¡£
ʹÓÃ&ldq
Ïà¹ØÎĵµ£º
typedef struct
{
BYTE baOrigMDN[8]; /* Ö÷½ÐÓû§MDN */
BYTE baDestMDN[8]; /* ±»½ÐÓû§MDN */
BYTE bOrigIsVIP;   ......
ÎļþÉÏ´«·½·¨£¨Ò»´ÎÉÏ´«Ò»¸öÎļþ£¬¶à¸öÎļþµÄ»°£¬Çëдѻ·µ÷Óã©
Upload.uploadFile(theFile, filePath)
˵Ã÷£º
theFile£ºÀàÐÍÊÇFormFile
filePath£ºactionÖз¾¶»ñÈ¡·½·¨ this.getServlet().getServletContext().getRealPath("/")
µ÷Óô˷½·¨·µ»ØÎļþÉÏ´«ºóµÄ·¾¶Ãû
ÉÏ´«¶à¸öÎļþʱ£¬ÇëÉèÖÃÿ¸öÎ ......
Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try {
InetAddress address = InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String name = address.getHostName();
System.out.println(name);
InetAddress[] addresses = &nbs ......
ajax¼¼ÊõÊÇʹҳÃæÄֲܾ¿Ë¢ÐµÄÒ»ÖÖ¼¼Êõ,È«³ÆÓ¦¸ÃÊÇasynchronous JavaScript and xml´Ó¼¸¸öµ¥´Ê¾ÍÖªµÀËüµÄÇëÇóÏìÓ¦µÄ´¦ÀíÊÇÒì²½µÄ,¶øÇÒʹÓõÄÊÇJavaScriptºÍxml¼¼Êõ.
ÎÒÃÇÔÚjavaÖÐʹÓÃajax¼¼Êõ×î¼òµ¥µÄÊÇʹÓÃËüµÄÒ»¸ö¿ò¼ÜdwrÖ»Òªµ¼ÈëÕâ¸ö°ü,×öÏàÓ¦µÄÅäÖÃ,¿É ......
JavaÈÝÆ÷Àà¿âÖ÷Òª°üº¬Á½ÖÖÀàÐÍCollection(List,Set,Queue)ºÍMap£¬ËüÃǵÄÇø±ðÔÚÓÚÿ¸ö²Û±£´æµÄÔªËظöÊý£¬CollectionÖ»±£´æÒ»¸ö£¬¶øMap±£´æ¼üºÍÖµ¡£
1.µ±Ê¹ÓÃArrays.asList()ʱ£¬Ëü»áÔÚʹÓÃÒ»¸öfinalµÄÊý×é×÷Ϊµ×²ãʵÏÖ£¬Òò´ËÈκÎÉè¼Æµ½¸ü¸ÄÆ䳤¶È´óСµÄ²Ù×÷¶¼½«Å×UnsuportedExceptioÒì³£¡£
2.finalµÄÊý×飬²»Äܸıä´óС£¬µ ......