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

SolarisÏÂjava packageµÄ±àÒëÓëÔËÐÐ

Õ⼸ÌìÓöµ½ÁËjavaµÄpackageÎÊÌ⣨ÕâÖÖÎÊÌâÖ»ÊÇÔÚcmdÃüÁîÐÐģʽÏ»áÓöµ½£¬Èç¹ûÓÃeclipse¾Í²»»áÓÐÕâÖÖÎÊÌ⣩£¬°ÑjavaÖеÄpackage±àÒëÔËÐеÄÎÊÌâ×ܽáһϣ¬×÷Ϊ±¸Íü¡£
    Ê×ÏÈ£¬Èç¹ûÄãÓÐÁ½¸öÀࣺ
   £¨1£©A.java
        import edu.ustc.*;
        public class A{
          public static void main(String[] args){
            B b = new B();
            b.print();
          }
        }
   £¨2£©B.java
        package edu.ustc;
        public class B{
          public void print(){
            System.out.println("hello");
          }
       }
    ÓÉÓÚjavaÖÐÓÐÀàËÆÓÚmakeµÄ¹¦ÄÜ£¬¶øÇÒAÖÐÒýÓÃÁËB£¬ËùÒÔ²»ÐèÒª¶ÔB½øÐе¥¶ÀµÄ±àÒ룬¶ÔA½øÐбàÒëµÄʱºò»á×Ô¶¯Éú³ÉBµÄclassÎļþ£¬µ«ÊÇÕâÀïҪעÒâ×éÖ¯A.javaºÍB.javaµÄÎļþλÖᣱÈÈç˵£¬A.java·ÅÔÚ$:/optĿ¼Ï£¬ÄÇôB.javaÐèÒª·ÅÔÚ$:/opt/edu/ustcĿ¼Ï£¬Ö»ÓÐÕâÑù²ÅÄÜÕÒµ½B£¨¸ù¾ÝBËùÔڵİüÃû´Óµ±Ç°Ä¿Â¼¿ªÊ¼ÐèÕÒB£©¡£
    ½ÓÏÂÀ´£¬ÔÙ°ÑÎÊÌâ±äһϣ¬Èç¹ûAÒ²ÔÚijһ¸ö°üÖУ¬¼´°ÑA.java±äΪ£º
        package edu.main;
        import edu.ustc.*;
        public class A{
          public static void main(String[] args){
            B b = new B();
            b.print();
      


Ïà¹ØÎĵµ£º

ÒÔjava±à³Ì·½Ê½µ÷Óà Apache Ant

 
±¾ÎÄÑÝʾÁËÈçºÎͨ¹ý Java µ÷Óà Apache Ant ¹¹½¨Îļþ¡£Äú½«¼ì²é±ØÒªµÄ Java ´úÂë²¢Á˽âÈçºÎÔÚ WebSphere Application Developer ÖÐÔËÐд˴úÂë¡£
ÒýÑÔ
Apache
Ant ÊÇÒ»¸ö»ùÓÚ Java µÄ¿ª·ÅÔ´´úÂë¹¹½¨ÊµÓù¤¾ß¡£ÈËÃdz£°ÑËüÓë Make ½øÐбȽϣ¬Make
³¤ÆÚÒÔÀ´Ò»Ö±ÓÃÓÚ°ïÖú×Ô¶¯Íê³É¹¹½¨¹ý³Ì¡£¾­¹ý²»Í¬°æ±¾µÄ¸Ä½ø£¬Ant Ò ......

JavaλËãÊõÔËËã·û

 
1£©&£ºÓëÔËË㣬½«Á½¸öÊý·Ö±ðת»¯³É²¹Â룬Ȼºó½øÐÐÔËË㣨ȫ1µÃ1£¬ÓÐ0³ö0£©¡£
2£©£¡£º·ÇÔËË㣬½«Êý×Ö×ÔÉíÈ¡·´£¨×ª»¯³É²¹Â룬°´Î»È¡·´——1±ä0£¬0±ä1£©¡£
3£©<<£º×óÒÆÔËËã·û£¬½«Ä³¸öÊ®½øÖÆת»»³É¶þ½øÖÆÖ®ºóĩβµÄn¸ö¶þ½øÖÆÊýÒÔ´ËÍù×óÒƶ¯£¬Òç³öµÄnλÓÃ0ÔÚĩβ²¹×ã¡£
4£©>>£º´ø·ûºÅÓÒÒÆÔË ......

java date

//¼òµ¥µÄjavaÈÕÆÚ¸ñʽ¿ØÖÆ
 java.Text.SimpleDateFormat format = new java.Text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//ÄãÏëÒªµÄ¸ñʽ
//×¢ÒâÔµÄλÖÃÒª´óдµÄMM  Òª²»¾Í¿´µ½µÄ²»ÊÇÕýÈ·ÏÔʾ£¬¿ÉÒÔ°ÑÄãÏëҪת»»µÄÈÕÆÚת»»ÎªÏàÓ¦µÄ¸ñʽ°¡
format.format(new java.util.Date());//dateΪÈÕÆÚÐÍÊý¾Ý£¬¿ÉÒÔÈÎÒ ......

FlexÖÐXMLSocketÓëJavaÖÐSocketͨÐÅ

FlexÖÐXMLSocketÓëJavaÖÐSocketͨÐÅ£¬Óöµ½µÄÎÊÌâÊÇ£¬JavaÖеÄsocketÄܹ»½ÓÊܵ½XMLSocket´«ÊäµÄÊý¾Ý£¬µ«ÊÇFlex²¢²»ÄܽÓÊܵ½´ÓJava·þÎñÆ÷´«ÊäµÄÊý¾Ý£¬´ÓÍøÉÏËÑÁ˺öà×ÊÁÏ£¬ÖÕÓÚÕÒµ½ÁËÔ­Òò£¬Ô­À´XMLSocket ½ÓÊÕµ½·þÎñ¶ËÏ·¢µÄÊý¾Ýʱ£¬½«Á¬Ðø·ÅÓÚ½ÓÊÕ»º³åÇø£¬Ö±µ½½ÓÊÕµ½ "\0" ×Ö½Ú£¨×Ö½ÚÄÚÈÝΪ ASCII Öµ 0£©£¬²ÅÈÏΪ½ÓÊÕÍê³É£¬² ......

javaÉè¼Æģʽ

ÎÊÌâÓò:
 --ϵͳÖÐÄãÐèÒª»ñµÃij¸öÀàµÄΨһʵÀý£¬ËùÓпͻ§¶Ë¶ÔËüµÄ·ÃÎʶ¼½«Í¨¹ýÒ»¸ö¹«¹²µÄ·ÃÎʵã»ñµÃ
 --´´½¨Ò»¸öÀಢʹÆ䣺(A)¶¨ÒåÒ»¸ö˽ÓеĹ¹ÔìÆ÷£¨B£©¶¨ÒåÒ»¸ö˽ÓС¢¾²Ì¬µÄ±äÁ¿Ö¸Ïò×Ô¼º£¨C£©¶¨ÒåÒ»¸ö¹«ÓС¢¾²Ì¬µÄ·ÃÎÊ·½·¨ÓÃÓÚ·µ»Ø¸ÃÀàµÄÒ»¸öΨһʵÀý
·ÖΪ ¶öººÊ½ ºÍ ÀÁººÊ½,ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄʾÀý´úÂ룬Ӧ¸Ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ