java中运行另一个java并获取返回值 在jar包程序中设置返回值:
Process p=Runtime.getRuntime().exec( "test.jar "); int exitInt=p.exitValue();//程序返回的值.