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

EclipseÏÂJAVAÏîÄ¿´ò°ü

  ÔÚÕâÀï½éÉÜÁ½ÖÖ·½·¨Éú³Éjar£¬µÚÒ»ÖÖÊÇÓÃEclpiseµÄExport¹¦ÄÜ¡£ÔÚÒª´ò°üµÄÏîÄ¿ÉÏ»÷ÓÒ¼ü£¬Ñ¡ÔñExport£¬ÔÚ´°¿ÚÖÐÑ¡ÔñJavaÀïµÄJAR file¡£NextºóµÄ´°¿ÚÖÐÒѾ­×Ô¶¯Ñ¡ºÃÁËÒª´ò°üµÄÏîÄ¿£¬Óû§¿ÉÒÔµã»÷¼ÓºÅ²é¿´ÏîÄ¿Àï±»´ò°üµÄÄÚÈÝ¡£ÔÚÏÂÃæµÄJAR fileÀïÉèÖÃÄã´ò°üÉú³ÉjarÎļþµÄÊä³öĿ¼£¬ÏÂÒ»²½ÔÚ³öÏֵĴ°¿ÚÖÐÑ¡ÔñUse existing manifest from workspace£¬µã»÷¡±ä¯ÀÀ¡±£¬Ñ¡ÖÐÄã×Ô¼ºÖÆ×öµÄmanifest.txtÎļþÇåµ¥£¨Õâ¸öÎļþÇåµ¥µÄÖÆ×÷ÊÇ×îÓн²¾¿µÄ£¬ÓÐÒ»µã²î±ð£¬´ò°üÎļþ¾Í²»ÄÜÕý³£ÔËÐУ¬ÏÂÃæ½éÉÜÈçºÎд£©¡£Ñ¡ÔñÖ÷ÀàºóµãFinish¼´¿ÉÉú³ÉjarÎļþ¡£ Äã¿ÉÒÔÔÚ¹¤³ÌϽ¨Ò»¸öÎļþ£¬ÃüÃû£ºmanifest.txt  ÀïÃæµÄÄÚÈÝÈçÏ£º Õâ¸öÎļþµÄÄÚÈÝÊÇÕâÑùµÄ£º Manifest-Version: 1.0 Main-Class: net.xxx.kbase.Main Class-Path: ./lib/log4j.jar ./lib/kbase3.jar ./lib/activemq-core-4.1.0-inc ÉÏÃæµÄ¾ÍÕâ¸öÎļþµÄÈ«²¿£¬ºìÉ«²¿·ÖÊÇÄãÕâ¸öÎļþµÄ°æ±¾£¬ÕÕд¾ÍÊÇ£»À¶É«²¿·ÖÊÇÕâ¸ö¹¤³ÌµÄÖ÷À࣬IPNMS.AppMainÊÇÎļþ¼ÐIPNMSÎļþ¼ÐÏÂÃæµÄAppMain.javaÀࣻÆäÖÐ×¢ÒâManifest-Version:¡¢Main-Class:¡¢Class-Path: È«²¿¶¥¸ñд£»ºóÃæµÄÄÚÈÝ¿ÕÉÏÒ»¸ñÔÙд¡£Ö÷ÀàIPNMS.AppMaiºóÃæûÓпոñ£¬Ð´ºÃÖ±½Ó»Ø³µÐ´Class-Path ;Class-Path:ºóÃæÈ«ÊǸù¤³ÌµÄjarÎļþ£¬ÕâÀï×¢ÒâÈç¹ûjarÎļþÌ«¶à£¬²»ÄÜȫдÔÚÒ»ÐÐÉÏ£¬Ì«³¤ÁË£¬´ò°üʱ»á³ö´í£¬Êʵ±³¤¶È¾ÍÒª°´»Ø³µ»»ÐУ¬»Ø³µ»»ÐÐҪעÒâÁ½µã£º1£ºÀ¹Ñü½Ø¶ÏÈçÎÒÉÏÃæËùд£»2£º»»Ðкó¿ÕÒ»¸ñ¶ø²»ÊǶ¥¸ñд£¬3£º×îºóÒ»¸öjarÎļþдÍêºó£¬²»ÒªÓпոñ¾ÍÖ±½Ó»Ø³µ£¨±ØÐë´ò»Ø³µ¸øÎļþÁôÒ»¸ö¿ÕÐУ©£»»Ø³µºóÕâ¸ö¿ÕÐÐÒª¶¥¸ñ²»ÄÜÓпոñÈçÎÒÉÏÃæµÄ×îºóÒ»ÐУ¬·ñÔò»á³öÏÖ not find main class ´íÎó¡£ ×¢Ò⣺libĿ¼²»Òª´ò°üΪjarÎļþ£¬Ö»ÒªºÍÉú³ÉµÄjarÎļþλÓÚͬһĿ¼¼´¿É¡£ µÚ¶þÖÖ·½·¨ÊÇÀûÓÃEclipseµÄÒ»¸öµÚÈý·½²å¼þfatjarÉú³ÉjarÎļþ£¬Ò²ÊDZ¾È˾õµÃ ×î¼òµ¥×î·½±ãµÄÒ»ÖÖÉú³É·½Ê½¡£ÏÈ´ÓÍøÉÏÏÂÔØЩ²å¼þ£¬½âѹºóÊÇÒ» ¸öpluginsµÄÎļþ¼Ð£¬ÀïÃæÖ»ÓÐÒ»¸öÎļþ¼Ð£¬ÎÒµÄÊÇ¡°net.sf.fjep.fatjar_0.0.24¡±½«Ëücopyµ½Eclipser pluginsÎļþ¼ÐÏ£¬´Ë²å¼þ¾Í°²×°³É¹¦ÁË£¬ÖØÆôEclipseÔÚÏîÄ¿ÉÏÓÒ»÷¾Í»á¿´µ½¶à³ö Ò»¸ö¡°Build Fat Jar¡±ÔÚÇ°ÃæÓиöÂÌÉ«µÄ¡°+¡±ºÅ£¬ÕâʱÄã¾Í¿ÉÒÔÓô˲å¼þ´ò°üÄãµÄÏîÄ¿ÁË¡£½øÈ¥ºóµÚÒ»¸ö½çÃæJar-NameÀïÔöÈëÒªÉú³ÉµÄjarÎļþÃû£¬ÎÒµÄÊÇ ¡°CAMP_fat.jar¡±¡£ÔÚMain-ClassºóµãBrowseÏñExportÒ»ÑùËüÒ²»áÁгöÄãÏîÄ¿ÖеÄÖ÷À࣬ѡÔñºóÆäËüĬÈϼ´¿É£¬Nextºó»á ÁгöÄãÒª


Ïà¹ØÎĵµ£º

¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼

¹ØÓÚJavaÕ»Óë¶ÑµÄ˼¿¼
1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£
¡¡¡¡2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µ ......

java¼¯ºÏ¿ò¼Üͼ¼°½éÉÜ

 
java¼¯ºÏ¿ò¼Üͼ¼°½éÉÜ
ת×Ô:http://hi.baidu.com/%C9%AE_%CC%C6/blog/item/9e2a8b0887008a8ad0581b3d.html
¼ò»¯Í¼£º
Javaƽ̨ÌṩÁËÒ»¸öȫеļ¯ºÏ¿ò¼Ü¡£“¼¯ºÏ¿ò¼Ü”Ö÷ÒªÓÉÒ»×éÓÃÀ´²Ù×÷¶ÔÏóµÄ½Ó¿Ú×é³É¡£²»Í¬½Ó¿ÚÃèÊöÒ»×鲻ͬÊý¾ÝÀàÐÍ¡£
Java 2¼¯ºÏ¿ò¼Üͼ
¼¯ºÏ½Ó¿Ú£º6¸ö½Ó¿Ú£¨¶ÌÐéÏß±íʾ£©£¬±íʾ²»Í ......

java²¢·¢±à³Ìʵ¼ù±Ê¼Ç

  1, ±£Ö¤Ḭ̈߳²È«µÄÈýÖÖ·½·¨: a, ²»Òª¿çÏ̷߳ÃÎʹ²Ïí±äÁ¿b, ʹ¹²Ïí±äÁ¿ÊÇfinalÀàÐ͵Äc, ½«¹²Ïí±äÁ¿µÄ²Ù×÷¼ÓÉÏͬ²½
    2, Ò»¿ªÊ¼¾Í½«ÀàÉè¼Æ³ÉḬ̈߳²È«µÄ, ±ÈÔÚºóÆÚÖØÐÂÐÞ¸´Ëü,¸üÈÝÒ×.
    3, ±àд¶àÏ̳߳ÌÐò, Ê×Ïȱ£Ö¤ËüÊÇÕýÈ·µÄ, Æä´ÎÔÙ¿¼ÂÇÐÔÄÜ.
    4, ÎÞ ......

javaÖÐÊäÈëÊä³ö×ܽá

µÚÒ»½Ú Êý¾ÝÁ÷µÄ»ù±¾¸ÅÄî
      Àí½âÊý¾ÝÁ÷
Á÷Ò»°ã·ÖΪÊäÈëÁ÷£¨Input Stream£©ºÍÊä³öÁ÷£¨Output Stream£©Á½À࣬µ«ÕâÖÖ»®·Ö²¢²»ÊǾø¶ÔµÄ¡£±ÈÈçÒ»¸öÎļþ£¬µ±ÏòÆäÖÐдÊý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊä³öÁ÷£»µ±´ÓÆäÖжÁÈ¡Êý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊäÈëÁ÷¡£µ±È»£¬¼üÅÌÖ»ÊÇÒ»¸öÊýÈËÁ÷£¬¶øÆÁÄ»ÔòÖ»ÊÇÒ»¸öÊä³öÁ÷¡ ......

Çë×¢Òâ:javaÖÐûÓÐÒýÓô«µÝ


˵Ã÷:±¾ÎĵÄÊÊÓöÔÏóΪjava³õѧÕß¡¢Èç¹ûÓжÁÕß·¢ÏÖÎÄÕÂÖÐÓÐÐðÊö²»Í×Ö®´¦£¬ÇëÖ¸Õý¡£
½ñÌìÔÚÂÛ̳ÉÏÓÐÈËÌáÁËÒ»¸ö¹ØÓÚjavaÖе÷Óú¯ÊýʱÓÐûÓÐÒýÓô«µÝµÄÎÊÌâ,¿ÉνÊdz³µÄ²»¿É¿ª½»¡£ÓÐÈË˵javaÖ»ÓÐÖµ´«µÝ,Ò²ÓÐÈË˵java¼ÈÓÐÖµ´«µÝÒ²ÓÐÒýÓô«µÝ,ÄÇôjavaÖе½µ×ÓÐûÓÐÒýÓô«µÝÄØ£¬ÏÂÃæÎÒÀ´·ÖÎöһϡ£
Ò»¡¢Ê×ÏÈÀ´Ã÷È·Ò»ÏÂ"Öµ´«µÝ" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ