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

ÔÚlinuxÏÂÔËÐÐjarÎļþ

дÁ˸ö³ÌÐò´ò³Éjarºó£¬ÔÚwindowÏ¿ÉÒÔÕý³£ÔËÐУ¬
·ÅÔÚlinuxÏÂÔËÐУ¨java -classpath ./browser.jar com.xxx.util.Browser£©È´±¨´í£¬
˵ÊÇÕÒ²»µ½Ä³¸öÀ࣬²»ÖªµÀÊÇΪʲô£¬
»·¾³±äÁ¿ÅäºÃÁË£¬
ËùÐèµÄjarҲȫ¶¼·ÅÔÚlinuxÉÏÁË¡£¡£¡£

ÄÄλ¸ßÈËÓöµ½¹ýÕâÑùµÄÇé¿ö²»£¿°ï°ïСµÜ°É¡£¡£¡£

ÉÏ´íÎóÈÕÖ¾

ÏÈ°ÑËùÐèÒªµÄLIB¿â¶¼¿½±´¹ýÈ¥, È»ºó°ÑÒªÒýÈëµÄLIB¿âºÍÒªÔËÐеÄÀàµÄÈë¿Ú¶¼ÅäÔÚÄãµÄJAR°üµÄMANIFESTÎļþÖÐ.
È»ºóʹÓÃjava -jar browser.jar ¾ÍOKÁË

ÒýÓÃ
ÏÈ°ÑËùÐèÒªµÄLIB¿â¶¼¿½±´¹ýÈ¥, È»ºó°ÑÒªÒýÈëµÄLIB¿âºÍÒªÔËÐеÄÀàµÄÈë¿Ú¶¼ÅäÔÚÄãµÄJAR°üµÄMANIFESTÎļþÖÐ.
È»ºóʹÓÃjava -jar browser.jar ¾ÍOKÁË



ÎÒ¶¼ÅäÁË

Manifest-Version: 1.0
Main-Class: com.xxx.util.Browser
Class-Path: lib/DJNativeSwing.jar lib/DJNativeSwing-SWT.jar lib/MozillaInterfaces-1.8.1.3.jar lib/swt-3.5M6-win32-win32-x86.jar



Çé¿öÊÇÕâÑùµÄ£¬ÎÒÏÖÔÚ×öµÄÊÇÔÚjava applicationÖÐǶÈëä¯ÀÀÆ÷£¬Óõ½ÁËSWT£¬

ËùÒԾͱ¨£º

[root@server Desktop]# java -jar br.jar
NativeSwing: Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3536 or swt-win32 in swt.library.path, java.library.path or the jar file
NativeSwing:    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
NativeSwing:    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
NativeSwing: 


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

¹ØÓÚLINUX²Ù×÷ϵͳµÄ°²×°

    ÎÒûÓа²×°²Ù×÷ϵͳµÄ¾­Ñ飬¼´Ê¹ÊÇWINDOWS¡£ÏÖÔÚÏëÔÚLINUX²Ù×÷ϵͳ´ó»·¾³ÏÂѧCÓïÑÔ£¬ÓÖÒªÂò±¾±¾£¬ÇëÎÊÈç¹û²Ù×÷ϵͳ°²×°²»µ±£¬»á²»»á¶ÔµçÄÔÔì³Éʲô´óµÄÆÆ»µ£¿ÓÐûÓбØÒªÏÈÂòÒ»¸ö¶þÊÖµçÄÔÁ·Ò»ÏÂLINUXµÄ ......

linuxµ½µ×Ç¿ÔÚÄÄÀï

¹¤×÷ÁË´ó¸Å3¸öÔÂÁË ËäÈ»ÒÔÇ°ÊÇÌý¹ýһЩǰ±²½²linuxÓжàºÃ¶àºÃ
ÀÏʵ˵ÎÒÕæµÄûÓз¢ÏÖ Linuxµ½µ×ÔÚÄÄЩ·½Ãæ±ÈwindowsÇ¿
ÖªµÀ×Ô¼ºÏÖÔÚ»¹ÊÇÖ»¾®µ×Ö®ÍÜ ¼û½âºÜƬÃæ
Ï£Íû¹ýÀ´ÈËÄÜÖ¸µã ÎÒÏëÌýµÄÊDZȽÏÏÖʵµãµÄ »ò ......

linuxÏÂÈçºÎÉý¼¶PHP?

Ô­À´ÔËÐеÄÊÇPHP4,ÏÖÔÚ¼ÓÈëеÄÒ³Ãæ,ÐèÒªPHP5Ö§³Ö,²»ÖªµÀÔÚlinuxÏÂÈçºÎ°Ñphp4Éý¼¶µ½php5,Óо­ÑéµÄÅóÓÑÇë¶à¶àÖ¸½Ì,лллл.·þÎñÆ÷ÅäÖÃÊÇPHP+Apache+mysql
È¥www.php.netÏÂÔØphp5ºÍ°²×°Êֲᡣ


³ÌÐò²»Éý¼¶ Óеij ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ