Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

Java ±³¾°

 Ò»¡¢±³¾°
    ×î½üÒ»Äê¶àÀ´,ÔÚInternetÉϳöÏÖµÄÌرðÎüÒýÈ˵Äʼþ¾ÍÊÇJavaÓïÑÔºÍÓÃJava±àдµÄä¯ÀÀÆ÷HotJava¡£
1991Äê,SUNMicroSystem¹«Ë¾µÄJameGosling¡¢BillJoeµÈÈË,ΪÔÚµçÊÓ¡¢¿ØÖÆ¿¾Ãæ°üÏäµÈ¼ÒÓÃÏû·ÑÀàµç×Ó²úÆ·ÉϽøÐн»»¥Ê½²Ù×÷¶ø¿ª·¢ÁËÒ»¸öÃûΪOakµÄÈí¼þ(¼´Ò»ÖÖÏðÊ÷µÄÃû×Ö),µ«µ±Ê±²¢Ã»ÓÐÒýÆðÈËÃǵ ......

JavaÏòÉÏתÐÍ

ͨË×Àí½âÏòÉÏתÐÍ£º
¾ÍÊÇ×ÓÀàתÐͳɸ¸Àà¡£
class A{}
class B extends A { }
A b = new B();
Õâ¸ö¾ÍÊÇÏòÉÏתÐÍ¡£
ÏòÉÏתÐÍ¿ÉÒÔÏñÏÂÃæÕâÌõÓï¾äÕâô¼òµ¥:
      Shape s =new Circle();
      ÕâÀ´´½¨Ò»¸öCircle¶ÔÏ ......

Javaµ÷ÓÃ.NETµÄWebService

1£®  »ù±¾¿â
cxf-2.2.4.jar
XmlSchema-1.4.5.jar
Wsdl4j-1.6.2.java
2£®  ÔÚ.NETÖбàд·þÎñ£¬Ä¬ÈϲÎÊý¼´¿É£¬È磺
namespace TestService2Java
{
    [WebService(Namespace = "http://temp2java.org/")]    //½ö´Ë´¦ÉÔ¼ÓÐ޸ģ¬²»¸ÄÒ²¿É
    [WebServiceBin ......

Java¼¯ÈºÖ®session¹²Ïí½â¾ö·½°¸

      Ëæ×Å»¥ÁªÍøµÄÈÕÒæ׳´ó,ÍøÕ¾µÄpvºÍuv³ÉÏßÐÔ»òÕßÖ¸Êý±¶µÄÔö¼Ó.µ¥·þÎñÆ÷µ¥Êý¾Ý¿âÔçÒѾ­²»ÄÜÂú×ãʵ¼ÊÐèÇó.±ÈÈçÏñÊ¢´ó,ÌÔ±¦ÕâÑùµÄ´óÐÍÍøÂ繫˾,¸üÊÇÈç´Ë.
    ¼¯Èº,Ò²¾ÍÊÇÈÃÒ»×é¼ÆËã»ú·þÎñÆ÷Эͬ¹¤×÷,´ï½â¾ö´ó²¢·¢,´óÊý¾ÝÁ¿Æ¿¾±ÎÊÌâ.µ«ÊÇÔÚȺ¼¯ÖÐ,sessionÍùÍùÊÇÒ»¸ö±È½ÈÍ·ÌÛµÄÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ