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

ÔÚLinux²¿ÊðÏîĿʱ£¬jdkµÄÎÊÌâ

Ò»°ãÔÚlinuxÉϲ¿ÊðÏîĿʱ£¬Ö±½Ó°ÑÔÚwindowÉϱàÒë³öÀ´µÄjarÎļþ²¿ÊðÉÏÈ¥£¬ÔÙÔËÐоͿÉÒÔÁË£¬µ«ÊǽñÌìÅöµ½µÄÎÊÌâ £º
Exception in thread "main" java.lang.NoClassDefFoundError: DataServer
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: DataServer not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/root/test/jar/dom4j-1.6.1.jar,file:/root/test/jar/jaxen-1.1-beta-6.jar,file:/root/test/jar/log4j-1.2.15.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Ô­Òò£º²»ÊÇ°æ±¾µÄÔ­Òò£¬ËäÈ»ÔËÐÐʱ»·¾³ºÍ±àÒëʱ»·¾³°æ±¾²»Ò»ÖÂͨ³£»áµ¼ÖÂһЩÎÊÌ⣬µ«ÎÒ¾õµÃ²»ÊÇÄãÕâ¸öÎÊÌâµÄ¹Ø¼üËùÔÚ¡£¹Ø¼üÊÇClassÎļþµÄ¸ñʽ²»Äܱ»Ê¶±ð
ÿһ¸öJAVA ClassÎļþµÄÇ°4¸ö×Ö½Ú±»³ÆΪËûµÄħÊý£¨magic number£©£º0XCAFEBABE¡£Ä§ÊýµÄ×÷ÓÃÔÚÓÚ£¬¿ÉÒÔÇáËɵطֱæ³öJava ClassÎļþºÍ·ÇJava ClassÎļþ¡£ÔÚClassÎļþµÄ½ÓÏÂÀ´µÄ4¸ö×Ö½Ú°üº¬Ö÷¡¢´Î°æ±¾ºÅ¡£µ±ÄãÓÃjavac ±àÒëÒ»¸öjavaÔ´³ÌÐòΪJava ClassÎļþµÄʱºò£¬Javac »á°ÑÆäÖ÷¡¢´Î°æ±¾Ð´ÈëclassÎļþÖ¸¶¨µÄλÖÃÖС£µ±ÄãÓÃjava ClassFileÔËÐÐÄãµÄJava ClassÎļþµÄʱºò£¬ÔËÐÐʱ»áÅжϸÃClassµÄÖ÷¡¢´Î°æ±¾
»ùÓÚÏòϼæÈݵÄÔ­Ôò£¬ÄãÓõͰ汾µÄjavac±àÒëµÄClassÎļþ¿ÉÒÔÔڸ߰汾µÄÔËÐÐʱ»·¾³ÖÐÔËÐУ»µ«ÊÇ·´¹ýÀ´£¬ÄãÓø߰汾µÄjavac±àÒëµÄClassÎļþ²»¿ÉÒÔÔڵͰ汾µÄÔËÐÐʱ»·¾³ÖÐÔËÐУ¬¼´Ê¹ÄãûÓÐÓõ½µÍ°æ±¾²»Ö§³ÖµÄ¸ß°æ±¾Ð¼ÓÈëµÄÌØÐÔ£¬JavaÔËÐÐʱ»á¸øÓû§ÌṩÏêϸµÄ´íÎ󱨸棬ÄÚÈÝÓ¦¸ÃÊÇNotSupportedVersionÖ®ÀàµÄ£¨Çë²Î¿¼Java APIµÄ˵Ã÷£©
1. ÓÃ1.5.0.7±àÒëʱ»·¾³±àÒ룬ÓÃ1.5.0.7ÔËÐÐʱ»·¾³ÔËÐÐ
-bash-3.00$ pwd
/home/a/u/wuqingping/testpro
-bash-3.00$ more HelloWorld.java
public class HelloWorld
{
        public static void main(String args[]) throws Exception
        {


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

linux ϵͳÐÔÄܼàÊÓÃüÁîVmstat , iostat, sar

 
Procs
¡¡¡¡r: µÈ´ýÔËÐеĽø³ÌÊý b: ´¦ÔÚ·ÇÖжÏ˯Ãß״̬µÄ½ø³ÌÊý w: ±»½»»»³öÈ¥µÄ¿ÉÔËÐеĽø³ÌÊý¡£´ËÊýÓÉ linux ¼ÆËãµÃ³ö£¬µ« linux ²¢²»ºÄ¾¡½»»»¿Õ¼ä
¡¡¡¡Memory
¡¡¡¡swpd: ÐéÄâÄÚ´æʹÓÃÇé¿ö£¬µ¥Î»£ºKB
¡¡¡¡free: ¿ÕÏеÄÄڴ棬µ¥Î»KB
¡¡¡¡buff: ±»ÓÃÀ´×öΪ»º´æµÄÄÚ´æÊý£¬µ¥Î»£ºKB
¡¡¡¡Swap
¡¡¡¡si: ´Ó´ÅÅ ......

¹ØÓÚLinux KernelÖеĺ궨ÒålikelyºÍunlikely

ת×Ôhttp://blog.163.com/ericxia_gnikam/blog/static/969208792008102545614453/
 
ÔÚLinux kernelµÄÔ´´úÂëÖУ¬¾­³£Äܼûµ½if(likely(x))»òif(unlikely(x))Ö®ÀàµÄÓ÷¨£¬ÆäÈ·Çк¬ÒåÐèҪ˵Ã÷һϣ¬ÒÔ±ã¸üºÃµÄÀí½âkernelµÄÔ´´úÂë¡£
likelyÓëunlikelyÕâÁ½¸öºêÔÚlinux/compiler.hÖеĶ¨ÒåÈçÏ£º
#define likely ......

Linux²Ù×÷ϵͳÆô¶¯Á÷³ÌÓëGrubµÄÅäÖ÷½·¨

 ×÷Õߣºsixth
Ò»¡¢LinuxµÄÆô¶¯Á÷³Ì
 
1. ´ÓBIOSµ½KERNEL
BIOS×Լ죭>MBR(GRUB)£­>KERNEL£­>KERNEL×Ô½âѹ£­>Äں˳õʼ»¯£­>ÄÚºËÆô¶¯
2. ÄÚºËÆô¶¯£º´´½¨1££½ø³Ì²¢Ö´ÐУ¬ÓÉËü´´½¨Èô¸ÉÄÚºËỊ̈߳¨kernel thread£©£¬È»ºó×°Èë²¢Ö´ÐгÌÐò/sbin/init£¨±ä³ÉÒ»¸öÓû§½ø³Ì£©¡£´Ëºó£¬init¸ù¾Ý/etc/initt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ