用java调用外部.exe程序的方法:

 

public class Demo{
     public static void main(String args[]){
     Runtime rn = Runtime.getRuntime();
     Process p = null;
     String exeFile = "";
     try{
       exeFile = "D:\\EditPlus 2\\editplus.exe";
       p = rn.exec(exeFile);
     }catch( Exception e ){
       System.out.println( " ERROR exec Editplus.exe " );
     }
    }

}

 
 

深圳人才网 深圳招聘网 深圳人才招聘网 深圳人才大市场 

企业、个人免费注册,获取想要的 深圳 软件工程师招聘信息 月薪最低3000-8000,更有高端猎头职位! 

www.szrcwz.com                                                                                                                                           

                  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-02-10
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-06-08
  • 2022-02-14
相关资源
相似解决方案