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

JavaÖе÷Ó÷þÎñ¶Ë½Å±¾

   
   Runtime runtime = Runtime.getRuntime();// ¿ªÊ¼µ÷Ó÷þÎñ¶Ë½Å±¾
   Process process = runtime.exec("encode.sh /home/tomcat6/kgedata/note_not_encode/ /home/tomcat6/kgedata/note_encode/");
 int exitVal = process.waitFor();
 System.out.println("³ÌÐòµ÷ÓÃubuntu¼ÓÃܽű¾Í˳ö״̬:   " + exitVal);


Ïà¹ØÎĵµ£º

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ 1 ²¿·Ö: ÀàºÍÀà×°Èë

ÕâÒ»ÓÐ¹Ø Java ±à³Ì¶¯Ì¬·½ÃæµÄеÄϵÁÐÎÄÕÂÑо¿ÁËÖ´ÐÐ Java Ó¦ÓóÌÐòʱĻºóËù·¢ÉúµÄÊÂÇé¡£ÆóÒµ Javaר¼Ò
Dennis Sosnoski ÌṩÁË Java ¶þ½øÖÆÀà¸ñʽÒÔ¼°ÔÚ JVM
ÄÚ²¿ÀàËù·¢ÉúµÄÇé¿öµÄÄÚÄ»¡£½Ó×Å£¬Ëû½«ÌÖÂÛÀà×°ÈëÎÊÌ⣬Æ䷶ΧÉæ¼°´ÓÔËÐмòµ¥µÄ Java Ó¦ÓóÌÐòËùÐèµÄÀàµÄÊýÁ¿µ½¿ÉÄÜÔì³É J2EE
¼°ÀàËƵĸ´ÔÓÌåϵ½á¹¹³öÏÖÎÊÌâµÄ ......

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ 7 ²¿·Ö: Óà BCEL Éè¼Æ×Ö½ÚÂë

Apache Byte Code Engineering Library (BCEL)¿ÉÒÔÉîÈë Java
ÀàµÄ×Ö½ÚÂë¡£¿ÉÒÔÓÃËüת»»ÏÖÓеÄÀà±íʾ»òÕß¹¹½¨ÐµÄÀ࣬ÒòΪ BCEL ÔÚµ¥¶ÀµÄ JVM
Ö¸Á±ðÉϽøÐвÙ×÷£¬ËùÒÔ¿ÉÒÔÈÃÄú¶Ô´úÂëÓÐ×îÇ¿´óµÄ¿ØÖÆ¡£²»¹ý£¬ÕâÖÖÄÜÁ¦µÄ´ú¼ÛÊǸ´ÔÓÐÔ¡£ÔÚ±¾ÎÄÖУ¬Java ¹ËÎÊ Dennis Sosnoski
½éÉÜÁË BCEL µÄ»ù±¾ÄÚÈÝ£¬²¢Òýµ¼¶ÁÕßÍê³ÉÒ»¸öʾÀ ......

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ3²¿·Ö: Ó¦Ó÷´Éä

ÃüÁîÐвÎÊý´¦ÀíÊÇÒ»ÏîÁîÈËÑá·³µÄÁãË鹤×÷£¬²»¹ÜÄú¹ýÈ¥ÒѾ­´¦Àí¹ý¶àÉÙ´ÎÁË£¬ËüºÃÏñ×ÜÄÜÖØаÚÔÚÄúµÄÃæÇ°¡£ÓëÆäÒ»±éÓÖÒ»±éµØ±àдͬ
Ò»¿é´úÂëµÄ²»Í¬±äÖÖ£¬ÎªÊ²Ã´²»ÀûÓ÷´ÉäÀ´¼ò»¯²ÎÊý´¦ÀíµÄ¹¤×÷ÄØ£¿Java ¹ËÎÊ Dennis Sosnoski
ÏòÄúչʾÁËÈçºÎ×öµ½ÕâÒ»µã¡£ÔÚ±¾ÎÄÖУ¬Dennis ¼òÃ÷¶óÒªµØ½éÉÜÁËÒ»¸ö¿ªÔ´¿â£¬Õâ¸ö¿â¿ÉÒÔʹµÃÃüÁîÐÐ ......

JAVAÓïÑÔѧУµÄΣÏÕÐÔ

    ÉÏѧʱºÜ¶àÎÊÌâµÄ´ð°¸£¬¿ÉÒÔ´ÓÏÂÎÄÕÒµ½
    JAVAÓïÑÔѧУµÄΣÏÕÐÔ
    ×÷ÕߣºJoel Spolsky
    ÒëÕߣºÈîÒ»·å
    Ô­ÎÄ£º http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
    ÒëÎĵØÖ·£ºhtt ......

Java×¢Ê͹淶

Java×¢Ê͹淶
¶¨ÒåÕâ¸ö¹æ·¶µÄÄ¿µÄÊÇÈÃÏîÄ¿ÖÐËùÓеÄÎĵµ¶¼¿´ÆðÀ´ÏñÒ»¸öÈËдµÄ£¬Ôö¼Ó¿É¶ÁÐÔ£¬¼õÉÙÏîÄ¿×éÖÐÒòΪ»»È˶ø´øÀ´µÄËðʧ¡££¨ÕâЩ¹æ·¶²¢²»ÊÇÒ»¶¨Òª¾ø¶Ô×ñÊØ£¬µ«ÊÇÒ»¶¨ÒªÈóÌÐòÓÐÁ¼ºÃµÄ¿É¶ÁÐÔ£©¡£
Java µÄÓï·¨Óë C++ ¼°ÎªÏàËÆ£¬ÄÇô£¬ÄãÖªµÀ Java µÄ×¢ÊÍÓм¸ÖÖÂð£¿ÊÇÁ½ÖÖ£¿ ¡¡¡¡
// ×¢ÊÍÒ»ÐС¡¡¡
/* ...... */ ×¢Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ