try{
string strjavahome = system.getproperty("java.home");
strjavahome = strjavahome.substring(0,strjavahome.lastindexof(//))+"//bin//";
runtime.getruntime().exec("cmd /c start "+strjavahome+"jar cvf hello.war c://tomcat5.0//webapps//root//*");
}
catch(exception e){system.out.println(e);}
执行程序代码,打包war文件~~
最新推荐文章于 2024-08-18 15:31:56 发布