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

½«javaÏîÄ¿Éú³Éexe¿ÉÖ´ÐÐÎļþÈ«¹ý³Ì

½«javaÏîÄ¿Éú³Éexe¿ÉÖ´ÐÐÎļþÈ«¹ý³Ì
2009Äê05ÔÂ10ÈÕ ÐÇÆÚÈÕ 16:30
Ò»¡¢Ê×ÏÈΪeclipse°²×°fatjar²å¼þ£¨Èç¹ûÄãµÄjarÏîÄ¿ÖÐÐèÒªÓõ½Í¼Æ¬¡¢Íⲿ³ÌÐòµÈÎļþʱҪÓô˲å¼þ´ò°ü³ÌÐò²ÅÄÜÕý³£ÔËÐУ©
°²×°·½Ê½ÓÐÁ½ÖÖ£º·½·¨1£ºÔÚÏß°²×°£¨ÍƼö£©
²½Ö裺
eclipse²Ëµ¥À¸ help >software updates >Find and install >Search for new features to install>new Remote site>
ÌîдnameºÍurl
name :FatJar
url:http://kurucz-grafika.de/fatjar
È»ºó°´ÕÕÌáʾ×ö¼´¿É¡£
·½·¨2£ºÊÖ¶¯°²×°
²½Ö裺
ÏÂÔØfatJar²å¼þ£¨http://kurucz-grafika.de/fatjar/features/net.sf.fjep.fatjar_0.0.31.jar£©
½âѹºóÓÐnet.sf.fjep.fatjar_0.0.27µÄÎļþ¼Ð£¬
½«Õâ¸öÎļþ¼Ð¸´ÖƵ½eclipseµÄpluginsÖУ¬ÖØÐÂÆô¶¯eclipse,
²é¿´windows->preference,¿´µ½Ò»¸öFat Jar preference,˵Ã÷°²×°³É¹¦¡£
Èç¹û¿´²»µ½£¬¿ÉÒÔÔÚÃüÁîÐвÉÓÓeclipse -clean”ÃüÁîÆô¶¯¡£
¶þ¡¢½«¹¤³ÌÏîÄ¿Éú³Éjar°ü
²½Ö裺
1.ÓÒ»÷¹¤³Ì£¬Ñ¡Ôñbuild fat jar ¡£
2.Ñ¡¶¨MainClass,½«¹¤³ÌÐèÒªµÄJar°üµÄ·¾¶ÌîÈëclasspathÖУ¬È»ºó°´Ìáʾ²Ù×÷¡£ÎÒµÄclasspathÉèÖÃÊÇ£º
./lib/org.eclipse.core.runtime_3.3.100.v20070530.jar
./lib /org.eclipse.jface_3.3.2.M20080207-0800.jar
./lib/org.eclipse.swt_3.3 .2.v3349d.jar
./lib/org.eclipse.ui.workbench_3.3.2.M20080207-0800.jar
3.½«¹¤³ÌÐèÒªµÄJar°ü·ÅÔÚÓëfatJar´òµÄJar°üµÄĿ¼Ï£¨×¢Ò⣺·Å¹¤³ÌÐèÒªµÄJar°üʱҪÓëÏîÄ¿ÖаüËùÔÚµÄĿ¼Ïàͬ£©¡£ ÎÒµÄjar°ü·ÅÖÃÔÚ/lib/xxx.jarÏ¡£
4.ÕÒµ½eclipse°²×°Ä¿Â¼ÏµÄplugins×ÓĿ¼ÏµÄorg.eclipse.swt.win32.win32.x86_3.2.2.v3236£¬½«Æä½âѹ£¬½«swt-win32-3236.dll·ÅÔÚJar°üµÄͬһĿ¼Ï¡££¨Èç¹ûÕÒ²»µ½org.eclipse.swt.win32.win32.x86_3.2.2.v3236µÄ»°Ò²¿ÉÒÔÑ¡Ôñorg.eclipse.swt.win32.win32.x86_3.3.3.v3349.jar£¬½«ÆäÖеÄswt-win32-3236.dll·ÅÔÚJar°üµÄͬһĿ¼Ï£©
5.½«¹¤³ÌÐèÒªµÄͼƬ¡¢ÎļþµÈ·ÅÔÚJar°üµÄͬһĿ¼Ï£¨ÓëÏîÄ¿ÖаüËùÔÚµÄĿ¼Ïàͬ£©¡£
Èý¡¢½«jar°üÉú³Éexe¿ÉÖ´ÐÐÎļþ
²½Ö裺
1ÏÂÔØÉú³ÉexeÎļþ¹¤¾ßJavaLauncher
http://download.csdn.net/source/528223
2.½âѹºó°Ñlauncher.cfgºÍLaunch.exeÁ½¸öÎļþ¿½±´µ½¸Õ²ÅÉú³ÉµÄjar°üËùÔÚͬһĿ¼Ï¡£
3.ÓüÇʱ¾´ò¿ªlauncher.cfg£¬°ÑD:\SYJ.WORK\SYJ.ENV\jdk6.0\bin\javaw.exe¸Ä³Éjavaw.exe£¬°Ñ×îºóÄÇÐÐ-jar javaman100.jar¸Ä³


Ïà¹ØÎĵµ£º

JavaȨÏÞ¿ØÖÆËã·¨

ÕâÀïÎÒ½éÉÜÒ»Öֺܳ£Óã¬Ò²±È½ÏProfessorµÄȨÏÞ¿ØÖÆ˼·¡£
ÕâÀïÎÒÓÃjavaÓïÑÔÃèÊö£¬Æäʵ¶¼²î²»¶àµÄ¡£×Ô¼º×ªÒ»Ï¾ͿÉÒÔÁË¡£
ΪÁË·½±ã£¬ÎÒÃÇÕâÀﶨÒåa^bΪ£ºaµÄb´Î·½
ÕâÀÎÒÃÇΪÿһ¸ö²Ù×÷É趨һ¸öΨһµÄÕûÊýÖµ£¬±ÈÈ磺
ɾ³ý£Á£­£­£­0
Ð޸ģÁ£­£­£­1
Ìí¼Ó£Á£­£­£­2
ɾ³ý£Â£­£­£­3
Ð޸ģ£­£­£­4
Ìí¼Ó£Â£­£­£­5
¡£¡£ ......

JavaÖи²¸ÇÓëÖØÔصÄÇø±ð

     override¿ÉÒÔ·­ÒëΪ¸²¸Ç£¬´Ó×ÖÃæ¾Í¿ÉÒÔÖªµÀ£¬ËüÊǸ²¸ÇÁËÒ»¸ö·½·¨²¢ÇÒ¶ÔÆäÖØд£¬ÒÔÇó´ïµ½²»Í¬µÄ×÷Ó᣶ÔÎÒÃÇÀ´Ëµ×îÊìϤµÄ¸²¸Ç¾ÍÊǶԽӿڷ½·¨µÄʵÏÖ£¬ÔÚ½Ó¿ÚÖÐÒ»°ãÖ»ÊǶԷ½·¨½øÐÐÁËÉùÃ÷£¬¶øÎÒÃÇÔÚʵÏÖʱ£¬¾ÍÐèҪʵÏÖ½Ó¿ÚÉùÃ÷µÄËùÓз½·¨¡£³ýÁËÕâ¸öµäÐ͵ÄÓ÷¨ÒÔÍ⣬ÎÒÃÇÔڼ̳ÐÖÐÒ²¿ÉÄÜ»áÔÚ×ÓÀา¸Ç¸¸À ......

javaÄÚ´æ·Ö²¼


ÔÚJAVAÖУ¬ÓÐÁù¸ö²»Í¬µÄµØ·½¿ÉÒÔ´æ´¢Êý¾Ý£º
1. ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ²»Í¬ÓÚÆäËû´æ´¢ÇøµÄµØ·½——´¦ÀíÆ÷ÄÚ²¿¡£µ«ÊǼĴæÆ÷µÄÊýÁ¿¼«ÆäÓÐÏÞ£¬ËùÒԼĴæÆ÷ÓɱàÒëÆ÷¸ù¾ÝÐèÇó½øÐзÖÅä¡£Äã²»ÄÜÖ±½Ó¿ØÖÆ £¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2. ¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAMÖУ¬µ ......

Çë´ó¼ÒÖ¸½Ì£¬ÓйØJavaÖÐmain·½·¨¼°²ÎÊýÎÊÌâ

½ñÌìûʸɡ££¬ÄÃJavaÖеÄmainº¯ÊýÀ´Ịֽ̀¬¡£¡£»¹ÇëÖîλָµã°¡£¬£¬
public static void main(String args [])
{
 .....
}
ÕâÊÇ´ó¼ÒÒ»°ãµÄд·¨°É£¬ÕâÀïÎÒÏëÌ̵ֽÄÖ÷ÒªÓÐÒÔϼ¸µã£º
1.ËüµÄ²ÎÊýÎÊÌ⣬ÄǸö²ÎÊýµ¹µ×ÓкÎÓÃÄØ£¬£¬ÕâÊǺÜÁîÈËÃÔ»óµÄ£¬ÕâÀï×Ô¼ºÐ´Á˸öÀý×ÓÊÔÁËһϣ¬µ«ÊdzöÏÖÁËÒì³££º
 class A
{ ......

java»ñȡϵͳÊôÐÔ




ת×Ô£ºhttp://blog.csdn.net/babydavic/archive/2007/08/23/1755718.aspx
ϵͳÊôÐÔ
ÊÇÖ¸ÓëÓû§³ÌÐòÏà¹ØµÄ²Ù×÷ϵͳÅäÖÃÐÅÏ¢ÒÔ¼°Èí¼þÐÅÏ¢¡£Í¨³£ÓëÓû§³ÌÐòÏà¹ØµÄÊôÐԹؼü×Ö°üÀ¨£º
¡¡¡¡¡ñfile.separator:Îļþ·Ö¸ô·û£¬
Windows
»·¾³ÏÂΪ“"£¬
Unix
»·¾³ÏÂΪ&ldquo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ