Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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µÄ·¾¶

¶ÔÓÚJava³ÌÐò£¬ÎÞÂÛÊÇδ´ò°üµÄ»¹ÊÇ´ò°üµÄJAR»òWARÎļþ£¬ÓÐʱºò¶¼ÐèÒª»ñÈ¡ËüÔËÐÐËùÔÚĿ¼ÐÅÏ¢£¬ÈçºÎ×öµ½ÕâÒ»µãÄØ£¿
ÔÚJava´¦ÀíµÄÎļþϵͳÖУ¬Ä¿Â¼µÄ±íʾ·½Ê½ÓÐÁ½ÖÖ£º
£¨1£©¾ø¶ÔĿ¼£¬ËüÒÔ"/"ΪÆðʼ×Ö·û£¬´ú±í´Ó¸ùĿ¼Ï¿ªÊ¼Ñ°ÕÒ¸ø³öµÄĿ¼£¬Èç/c:/java
£¨2£©Ïà¶Ô·¾¶£¬ËüÒÔ²»´ø“/”µÄĿ¼Ãû±íʾ£¬±íʾÒÔµ±Ç ......

javaÅжÏ×ÓÍøÑÚÂë

String[] ips = ipValue.split("\\.");
String binaryVal = "";
for (int i = 0; i < ips.length; i++)
{
String binaryStr = Integer.toBinaryString(Integer.parseInt(ips[i]));


Integer times = 8 - binaryStr.length();
......

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

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

Java options Some Useful XX Options

http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
Categories of Java HotSpot VM Options
 

Standard options recognized by the Java HotSpot VM are described on the Java Application Launcher reference pages for Windows
, Solaris
and Linux
. This document deals exclusively wit ......

java ²Ù×÷¶ÌÐÅèʵÏÖ¶ÌÐÅȺ·¢

²ÉÓô®¿Ú²Ù×÷½øÐжÌÐÅÊÕ·¢,ÊDZȽϳ£¼ûµÄÒ»ÖÖ·½Ê½.±ÈÈç,ºÜ¶àȺ·¢Èí¼þ,ÓõľÍÊÇÕâÖÖ·½·¨.
1.ÅäÖÃcomm.jar.
Comm.jarÊÇSubʵÏֵײ㴮¿Ú²Ù×÷µÄAPI,µ÷ÓÃÁ˱¾µØµÄDLLÎļþ,ÒòΪJava±¾Éí²»¾ß±¸Ö±½Ó·ÃÎÊÓ²¼þÉèÖõÄÄÜÁ¦,¶¼ÊÇͨ¹ýµ÷Óñ¾µØ·½·¨À´Êµ
ÏÖµÄ.¿ÉÒÔJavaµÄ¹Ù·½ÍøÕ¾ÏÂÔØ.ÏÂÔØÖ®ºó°ÑÆäÖÐComm.jar°üµ¼Èëµ½¹¤³ÌµÄClasspathÖÐ,°Ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ