调用java
Runtime hello=RuntimegetRuntime(); //Runtime构造函数私有只能通过这种方式获得实例
helloexec(cmd /c start Java D orgapacheaxiswsdlWSDLJava );
调用javac
comsuntoolsjavacMain javac = new comsuntoolsjavacMain(); //这个包在toolsjar中
String[] cpargs = new String[] {d 所在目录Tempjava};
int status = pile(cpargs);
if(status!=){
Systemoutprintln(没有成功编译源文件!);
return null;
}