ÔÚ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
{
Ïà¹ØÎĵµ£º
×÷Õߣº
±±ÄÏÄϱ±£¬ÕýÔÚÔö¼ÓÖÐ... ... ÐèÒªÄúµÄ²ÎÓ룻
À´×Ô£º
LinuxSir.Org
¼ò½é£º
±¾ÎÄÖ»Êǽ²Ò»½²ÎÒÃÇ×î³£ÓõÄLinuxÓëWindows¹²ÏíÎļþ£¬Ö÷ÒªÊÇΪÐÂÊÖָһָ·¡£ÈçºÎ½¨Á¢×î¼òµ¥µÄSamba·þÎñÆ÷£¬²¢½²ÊöÓöµ½ÎÊÌâÓ¦¸Ã´ÓºÎ´¦Ñ°ÕÒ½â¾ö·½°¸£»ÕýÔÚ¸üÐÂÖ®ÖУ¬Ï£ÍûÄúµÄ²Î¼Ó ... ... лл£»
Ŀ¼
0.1 ²é¿´Îļþ ......
£±¡¢²é¿´IP¡¡¡¡Ifconfig
¡¡¡¡£²¡¢ÅäÖÃIPµÄ·½·¨£º
¡¡¡¡A¡¢ ÕâÖÖ·½·¨Á¢¼´ÉúЧ¡¡µ«ÊÇÖØÆô½«²»»á±£´æ¡££¨³ýÁËÕâ¸ö·½·¨µÄÆäËü·½·¨¶¼¿ÉÒÔ±£´æÏÂÀ´£©
¡¡¡¡Ifconfig eth£° 1.1.1.1 netmask 255.0.0.0 up
¡¡¡¡Ifconfig eth0:1 1.1.1.3 up¡¡¡¡ÉèÖÃÒ»¸öÍø¿¨¶à¸öIPµÄ·½·¨£¨ÔÚÉèÖÃÐéÄâÖ÷»úʱÓÐ ......
Ç°ÑÔ:
ÕâÊÇһƪºÜ³õ¼¶µ«ÊÇÒ²±È½Ï¼òµ¥ÈÝÒ×ѧϰLinuxĿ¼ȨÏÞÉèÖõÄÎÄÕÂ,֮ǰÎÒʹÓÃWindows Serverϵͳ,ÓÃͼÐνçÃæ¹ÜÀíÎļþµÄ·ÃÎÊȨÏÞ.ºóÀ´ÔÚѧϰGUN/Linux ServerµÄʱºò·¢ÏÖGUN/LinuxµÄȨÏÞ¹ÜÀíÉèÖ÷dz£Ç¿´ó,Ò²·Ç³£·½±ã.µ«ÊÇÎÒ·¢ÏÖÔÚÍø·ÉÏûÓÐһƪÎÄÕÂÊÇÍêÕûÐðÊö+ÈöÁÕߺÜÈÝÒ×Àí½âµÄ,ÓÚÊÇÎÒдÁËÕâƪ¼òµ¥Ò׶®µÄL ......
Procs
¡¡¡¡r: µÈ´ýÔËÐеĽø³ÌÊý b: ´¦ÔÚ·ÇÖжÏ˯Ãß״̬µÄ½ø³ÌÊý w: ±»½»»»³öÈ¥µÄ¿ÉÔËÐеĽø³ÌÊý¡£´ËÊýÓÉ linux ¼ÆËãµÃ³ö£¬µ« linux ²¢²»ºÄ¾¡½»»»¿Õ¼ä
¡¡¡¡Memory
¡¡¡¡swpd: ÐéÄâÄÚ´æʹÓÃÇé¿ö£¬µ¥Î»£ºKB
¡¡¡¡free: ¿ÕÏеÄÄڴ棬µ¥Î»KB
¡¡¡¡buff: ±»ÓÃÀ´×öΪ»º´æµÄÄÚ´æÊý£¬µ¥Î»£ºKB
¡¡¡¡Swap
¡¡¡¡si: ´Ó´ÅÅ ......
¾¡¹ÜLinux¿ª·¢µÄÏà¹Ø¸ÚλºÜ¶à£¬µ«³¤ÆÚÒÔÀ´Linux¿ª·¢Ã»ÓÐͳһµÄ¿ª·¢Æ½Ì¨£¬´ó¶àÊýµÄ¿ª·¢Õ߶¼Ö±½ÓʹÓÃVI¡¢GCCµÈÃüÁîÐй¤¾ß£¬ÕâÑùÆäʵ²»ÀûÓÚ´óÐÍÏîÄ¿µÄ¿ª·¢¡£ 1.ÒÀÈ»ÊÇÊìϤµÄ¿ª·¢Á÷³Ì ÔÚLinux²Ù×÷ϵͳÖУ¬CÓïÑÔ³ÌÐòµÄ¿ª·¢ºÍÆäËû»·¾³ÀàËÆ£¬³ÌÐòÉú³ÉÖ÷Òª·Ö³É±àÒë¡¢»ã±à¡¢Á¬½ÓµÈ¼¸¸ö²½Öè¡£ ± ......