随笔-104  评论-46  文章-8  trackbacks-0
  2006年11月22日
1、在eclipse里新建一个工程,或用已有工程
2、将以下的jar包引用工程:

activation.jar

axis.jar

commons-discovery.jar

commons-logging-1.0.3.jar

ihandyshsoap.jar

jaxrpc.jar

saaj.jar

wsdl4j-1.5.2.jar

3、右击你的工程-Run As-Run...-右击New configuration ,将Include libraries when searching for a main class勾上,再点search,输入wsdl2java,再Arguments里把要生成的web service URI或wsdl文件写进去
4、点Run,即在你的工程目录里生成了相应该的包,剩下的事就是你的了.....

posted @ 2006-11-22 20:53 一凡 阅读(1117) | 评论 (2)编辑 收藏
/**
 * 
@author  cnyqiao@hotmail.com
 * @Date   Nov 22, 2006
 
*/

import  java.io. * ;

public   class  compiler  {
    
public  compiler()  {
    }


    
public   static   void  main(String[] args)  {
        compiler compiler1 
=   new  compiler();
        Runtime runtime 
=  Runtime.getRuntime();
        Process process 
=   null ;
        String line 
=   null ;
        InputStream is 
=   null ;
        InputStreamReader isr 
=   null ;
        BufferedReader br 
=   null ;
        
try   {
            process 
=  runtime.exec( " tail -f submit.2006-11-21.log " );  //  关键是这行
        }
  catch  (IOException e)  {
            System.out.println(e);
        }

        is 
=  process.getInputStream();
        isr 
=   new  InputStreamReader(is);
        br 
=   new  BufferedReader(isr);
        
try   {
            
while  ((line  =  br.readLine())  !=   null {
                System.out.println(line);
            }

        }
  catch  (IOException e)  {
            System.out.println(e);
            e.printStackTrace();
        }


    }

}
posted @ 2006-11-22 15:09 一凡 阅读(218) | 评论 (0)编辑 收藏