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

ÔÚjavaµ÷ÓÃexe£¬com¿ÉÖ´ÐÐÎļþºÍbat£¬cmdÅú´¦ÀíÎļþ

ÔÚjavaµ÷ÓÃexe£¬com¿ÉÖ´ÐÐÎļþºÍbat£¬cmdÅú´¦ÀíÎļþ
Ò»¡£ÔËÐÐexeÎļþ
    1. Java JDKÀïÒѾ­ÌṩÁ˵÷Óõķ½·¨£¬²»ÔÚÀÛ׸£¬´úÂëÈçÏ¡£
     try {
         String command = "notepad";
         Process child = Runtime.getRuntime().exec(command);
     } catch (IOException e) {
     }
¶þ¡£ÔËÐÐbat£¨Åú´¦Àí£©Îļþ
    1.
import java.io.*;
public class Test
{
     public static void main(String[] args)
     {
         System.out.println("args : " + java.util.Arrays.asList(args));
         try
         {
             String command = "test.bat";
             Process child = Runtime.getRuntime().exec(command);
             String line = null;
             BufferedReader reader = new BufferedReader(new InputStreamReader(child.getInputStream()));
             while((line = reader.readLine()) != null)
             {
                 System.out.println(line);
             }
         }
         catch (Exception ex)
         {
             ex.p


Ïà¹ØÎĵµ£º

java¾­µäÍøÖ·


1.¹ØÓÚstruts µÄAPI 
  struts µÄ¹Ù·½ÍøÕ¾£¬½éÉܵĺÜÊÇÈ«Ãæ
 http://struts.apache.org/struts-doc-1.2.x/userGuide
  Õâ¸öÊÇstruts µÄ¹Ù·½ÍøÕ¾ÌṩµÄ¹ØÓÚ±êÇ©¿âµÄ
  Õâ¸öÊÇ¿ÉÒÔÏÂÔص½Ô­ÂëµÄ
 http://www.apache.org/dist
2.ÏÂÃæÕâ¸ö¾ÍÊÇÖøÃûµÄcommons °üµÄÏÂÔصØÖ·  
&n ......

javaÖÐdynamic web projectÓëweb project µÄÇø±ð£¿

dynamic web projectÊÇEclipseµÄÏîÄ¿£¬ÓëÆä¶ÔÓ¦µÄÓÐstatic web project£¬Ç°ÕßÖ¸¶¯Ì¬webÏîÄ¿£¬°üº¬Ò»Ð©¶¯Ì¬´úÂ룬Èçjava£»¶østatic web projectÔò½ö°üº¬¾²Ì¬Ò³ÃæÎļþ¡£
MyEclipse¶ÔEclipse½øÐÐÁËÀ©Õ¹£¬È磺web project¿ÉÒÔÌí¼ÓһЩ¿ªÔ´µÄ¿ò¼ÜÖ§³Ö£¬±ÈÈçStruts¡¢HibernateµÈµÈ¡£
Ò²¾ÍÊÇ˵£¬web projectÊÇMyeclipseÀ©Õ¹ºóµÄÏ ......

̸JAVAÈËÔ±ÃæÊÔ

¡¡¡¡½ñÌìÒ»ÅóÓѵĹ«Ë¾µ¹±ÕÁË£¬Ô­Òò²»ÖªµÀΪʲô¡£ËûÃÇÊǸºÔð¹«Ë¾ERP¿ª·¢µÄ£¬¿ª·¢¹ýºóÒ²¾Í³ÉÁËά»¤ÈËÔ±ÁË£¬ÓõÄÊÇJAVAÄÇһϵÁй¤¾ß×öµÄ¡£Ã»°ì·¨£¬ËäÈ»ÔÚÄÇÀï¸ÉÁ˼¸ÄêÁË£¬ÎªÁËÉú¼Æ»¹µÃÕÒ¹¤×÷£¬¼ÌÐøÕÒJAVA·½ÃæµÄÊ£¬ÃæÊÔÒ²ÃæÁ˼¸¼Ò¹«Ë¾ÁË£¬ÎÒÄÇÅóÓÑÌ«ÀÏʵ£¬ÊÇʲô˵ʲô£¬Ò²²»Ïëµã»ªÀöµÄ´ÊÔ壬½ñÌìËû¸úÎÒËßÁËһͨµÄ¿à£¬ËûºÜÓôà ......

java×é¼þÖ®ÖØÁ¿¼¶ÓëÇáÁ¿¼¶Çø±ð

ÇáÁ¿¼¶×é¼þÊÇÓÃJAVA´úÂë»­³öÀ´µÄ,ÕâÑù¾ßÓÐƽ̨ÒÆÖ²ÐÔ¡£
¡¡¡¡ ÖØÁ¿¼¶×é¼þÊǵ÷ÓòÙ×÷ϵͳµÄº¯Êý»­³öÀ´µÄ×é¼þ,±ÈÈçÖ÷´°Ìå¡£
¡¡¡¡ Ò»°ãÀ´Ëµ¾¡Á¿ÓÃÇáÁ¿¼¶µÄ×é¼þ,ÕâÑù¶Ô³ÌÐòµÄÒÆÖ²ÐԺܺã¬Ò»°ãjavax.swing°üÀïµÄ×é¼þ´ó²¿·ÖÊÇÇáÁ¿¼¶µÄjava.awtÀïÃæµÄÊÇÖØÁ¿¼¶µÄ¡£
¡¡¡¡ SwingÊÇÓÉ100%´¿JavaʵÏֵģ¬Swing×é¼þÊÇÓÃJavaʵÏÖ ......

Java²Ù×÷OracleÊý¾Ý¿â£¨½¨±í£¬²åÊý¾Ý£¬É¾³ý£©

ÓÃjpa²»Äܽ¨±í£¬sqlÓï¾äÊǶԵģ¬²»¹ý¾ÍÊDz»Äܽ¨£¬Í¬ÑùµÄsql£¬ÔÚÏÂÃæµÄjdbcÖоͿÉÒÔ£¬¿ÉÄÜÊÇ¿ò¼ÜµÄÏÞÖÆ£¬Ï£Íû¸ßÈËÖ¸µã
import java.net.URL;
import java.sql.*;
public class Create {
public Create() {
}
public static void main(String[] args){
String url = "jdbc:oracle:thin:@10.0.1.3:1521:SDCDB" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ