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

ÓÃjar ½«JAVAÎļþ´ò°ü

jar Ó¦Óà ÏÈ´ò¿ªÃüÁîÌáʾ·û(win2000»òÔÚÔËÐпðÀïÖ´ÐÐcmdÃüÁwin98ΪDOSÌáʾ·û)£¬ÊäÈëjar
-help,È»ºó»Ø³µ(Èç¹ûÄãÅÌÉÏÒѾ­ÓÐÁËjdk1.1»òÒÔÉÏ°æ±¾)£¬¿´µ½Ê²Ã´£º
Ó÷¨£ºjar {ctxu}[vfm0Mi] [jar-Îļþ]
[manifest-Îļþ] [-C Ŀ¼] ÎļþÃû ...
Ñ¡Ï
-c ´´½¨ÐµĴ浵
-t Áгö´æµµÄÚÈݵÄÁбí
-x
Õ¹¿ª´æµµÖеÄÃüÃûµÄ£¨»òËùÓеġ³Îļþ
-u ¸üÐÂÒÑ´æÔڵĴ浵
-v Éú³ÉÏêϸÊä³öµ½±ê×¼Êä³öÉÏ
-f Ö¸¶¨´æµµÎļþÃû
-m
°üº¬À´×Ô±êÃ÷ÎļþµÄ±êÃ÷ÐÅÏ¢
-0 Ö»´æ´¢·½Ê½£»Î´ÓÃZIPѹËõ¸ñʽ
-M ²»²úÉúËùÓÐÏîµÄÇåµ¥£¨manifest¡³Îļþ
-i
Ϊָ¶¨µÄjarÎļþ²úÉúË÷ÒýÐÅÏ¢
-C ¸Ä±äµ½Ö¸¶¨µÄĿ¼£¬²¢ÇÒ°üº¬ÏÂÁÐÎļþ£º
Èç¹ûÒ»¸öÎļþÃûÊÇÒ»¸öĿ¼£¬Ëü½«±»µÝ¹é´¦Àí¡£
Çåµ¥£¨manifest¡³ÎļþÃûºÍ´æµµÎļþÃû¶¼ÐèÒª±»Ö¸¶¨£¬°´'m' ºÍ
'f'±êÖ¾Ö¸¶¨µÄÏàͬ˳Ðò.
ʾÀý1£º½«Á½¸öclassÎļþ´æµµµ½Ò»¸öÃûΪ 'classes.jar' µÄ´æµµÎļþÖУº
jar cvf classes.jar
Foo.class Bar.class
ʾÀý2£ºÓÃÒ»¸ö´æÔÚµÄÇåµ¥£¨manifest£©Îļþ 'mymanifest' ½« foo/ Ŀ¼ÏµÄËùÓÐÎļþ´æµµµ½Ò»¸öÃûΪ
'classes.jar' µÄ´æµµÎļþÖУº
jar cvfm classes.jar mymanifest -C foo/ .
À´¸öСÀý×ÓÊÔÊÔ¿´£º
ÎÒÃÇÖ»ÓÐÒ»¸öHelloWorld£¬ÈçÏ£º
public class HelloWorld{
   
public static void main(String[] args){
       
System.out.println("Hi, Hello World!");
    }
}
ÎÒ½«Õâ¸öJavaÎļþ´æµ½C
Å̸úĿ¼Ï£¬ok£¬½ÓÏÂÀ´£¬
ÔÚÏÈÇ°´ò¿ªµÄÃüÁîÌáʾ·ûÏÂ(Ìøתµ½CÅÌÌáʾ·ûÏÂ)£¬ÎÒÃÇÊäÈëJavac HelloWorld.Java£¬È»ºó¼ÌÐøÊäÈ룺jar cvf
hello.jar HelloWorld.class£¬»Ø³µºóÈ¥ÄãµÄCÅÌ¿´¿´£¬¶àÁËʲô£¬Ã»´í hello.jar ¡£
»ù±¾µÄ²½ÖèÎÒÃÇÏÖÔÚ¶¼ÖªµÀÁË£¬Äã¿ÉÒÔ×Ô¼ºÈ¥³¢ÊÔÒ»ÏÂËæ×ÅjarºóÃæµÄ²ÎÊýµÄ²»Í¬£¬½á¹ûÓÐʲô±ä»¯¡£
½ô½Ó×ÅÎÒÃÇ¿´¿´ÈçºÎÔËÐÐÎÒÃǵÄjar°ü¡£
ÔÚ½øÈëÕýÌâ֮ǰ£¬ÄãÒªÏÈ´ò¿ªÎÒÃǸոÕ×öºÃµÄjar°ü¿´¿´£¬¶àÁËʲôÄØ£¬META-INFĿ¼£¿ÔÙ¿´¿´ÀïÃæÊÇʲô£¬»¹ÓÐÒ»¸öMANIFEST.MFÎÄ
¼þÊDz»ÊÇ£¿ÓÃÎı¾±à¼­Æ÷(ÎÒÕâÀïÊÇUltraEdit)´ò¿ªËü¿´¿´£º
Manifest-Version: 1.0
Created-By:
1.4.2 (Sun Microsystems Inc.)
¾ÍÊÇÕâÑù¡£ÕâÀïÎÒÃǶÔËü½øÐÐÐ޸ģ¬¼ÓÒ»¾ä£ºMain-Class: HelloWorld
(ÔÚµÚÈýÐÐ)¡£Õâ¸ö¾ÍÊÇÎÒÃÇ֮ǰдµÄÄǸöÀ࣬Ҳ¾ÍÊÇÎÒÃǵÄÈë¿ÚÀà¡£Ò²¼´£¬
Manifest-Ver


Ïà¹ØÎĵµ£º

JAVA Á¬½Ó³Ø BoneCP ²âÊÔ£¨2£© with spring 3

¶îÍâJAR°ü£º
org.springframework.expression-3.0.1.RELEASE.jar
org.springframework.asm-3.0.1.RELEASE.jar
org.springframework.beans-3.0.1.RELEASE.jar
p:statementCacheSize="100"
<bean id="masterDataSource" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close"
p:driverClass="com.m ......

JAVA¼¸¸ö³£¼û´íÎó¼òÎö

1£¬¿ÕÖ¸Õë´íÎó java.lang.NullPointerException
ʹÓûù±¾µÄJAVAÊý¾ÝÀàÐÍ£¬±äÁ¿µÄֵҪôÒѾ­ÊÇĬÈÏÖµ£¬Èç¹ûûÓжÔÆäÕý³£¸³Öµ£¬³ÌÐò±ã²»ÄÜͨ¹ý±àÒ룬Òò´ËʹÓûù±¾µÄJAVAÊý¾ÝÀàÐÍ
(double,float,boolean,char,int,long)Ò»°ã²»»áÒýÆð¿ÕÖ¸ÕëÒì³£¡£Óɴ˿ɼû£¬¿ÕÖ¸ÕëÒì³£Ö÷Òª¸úÓë¶ÔÏóµÄ²Ù×÷Ïà¹Ø¡£
ÏÂÃæÏÈÁгöÁË¿ÉÄÜ·¢Éú¿ÕÖ¸Õ ......

JavaÔ¶³ÌͨѶ¿ÉÑ¡¼¼Êõ¼°Ô­Àí

ÔÚ·Ö²¼Ê½·þÎñ¿ò¼ÜÖУ¬Ò»¸ö×î»ù´¡µÄÎÊÌâ¾ÍÊÇÔ¶³Ì·þÎñÊÇÔõôͨѶµÄ£¬ÔÚJavaÁìÓòÖÐÓкܶà¿ÉʵÏÖÔ¶³ÌͨѶµÄ¼¼Êõ£¬ÀýÈ磺RMI¡¢MINA¡¢ESB¡¢Burlap¡¢Hessian¡¢SOAP¡¢EJBºÍJMSµÈ£¬ÕâЩÃû´ÊÖ®¼äµ½µ×ÊÇЩʲô¹ØϵÄØ£¬ËüÃDZ³ºóµ½µ×ÊÇ»ùÓÚʲôԭÀíʵÏÖµÄÄØ£¬Á˽âÕâЩÊÇʵÏÖ·Ö²¼Ê½·þÎñ¿ò¼ÜµÄ»ù´¡ÖªÊ¶£¬¶øÈç¹ûÔÚÐÔÄÜÉÏÓиߵÄÒªÇóµÄ»°£¬ÄÇÉ ......

Java¾²Ì¬±äÁ¿ÒÔ¼°·Ç±ê×¼µ¥Ì¬Ä£Ê½µÄ¿Ó

½ñÌìÓöµ½Ò»¸öºÜ¹îÒìµÄbug£¬µ÷ÊÔÁË°ëÌìҲûÓп´³öÀ´ÓÐʲôÎÊÌ⣬³éÏóһϴúÂëÈçÏ£º
public class Instance
{

public static Instance instance = new Instance();

public static Map<String, String> map = new HashMap<String, String>();

public static Instance instance()
{

r ......

java´¦Àí Excel(POI°ü)


×î½üÔÚÔÛÃÇÕâ¸öÂÛ̳Àï×ÜÄÜ¿´¼û´ó¼ÒÌá³öÓÃjava´¦ÀíExcelµÄÎÊÌ⣬ÓÐʱ»¹Éæ¼°µ½Í¼ÐεÄÎÊÌ⣬
´ó¼Ò¿´ÁËÕâƪÎÄÕºó£¬ÎÒÏëÒ»¶¨»á½â¾ö²»ÉÙÈ˵ÄÎÊÌ⣡
¿´µ½ÍøÉϺܶàÎÄÕ¶¼Ò»Ö±¶¼ÊÇ˵POIµÄAPI²»ÄÜ´¦ÀíͼÐΣ¬Ò²¾ÍÊDz»ÄÜÍùExcelÀïÃæ¼ÓÈëͼÐΡ£
µ«ÊÂʵÉÏ£¬POI3.0³öÀ´Ö®ºó£¬Õâ¸öÎÊÌâÒѾ­½â¾ö£¡ËùÒÔ˵£¬ÍùExcelÀïÃæ¼ÓÈëͼÐβ»±ØÒ»¶¨Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ