解决方案 »
- 请问myeclipse中定位函数参数的快捷键
- Structs2 Action的参数传递问题
- springMVC
- 请问大家java项目里有一个CoDB.jar的jar包是哪开发的数据库驱动
- 为什么我发布的是demo这个项目,怎么会去运行另外的项目
- NULL显示问题
- 那位高手用过PCYACC,请求帮忙
- 高手帮忙推荐一本JavaScript的书
- 问:如何在点击按钮后,执行一个action后,回到本页面,能把隐藏的表格显示出来!!!
- jbarcodejava自动生成条形码问题
- easyui-dialog ie8和combobox 加载页面的时候出现兼容性错误-未指明的错误
- 用QTITOOLS的JQTI实现试卷的导入导出,求大侠指点啊
String string = null;
Runtime run = Runtime.getRuntime();
errortextArea.setText(Name);
Process process = null;
try {
process = run.exec("java "+Name);
BufferedInputStream in = new BufferedInputStream(process.getErrorStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
errortextArea.setText(string);
while((str = reader.readLine()) != null)
{
string += str;
string += "\n";
}
errortextArea.setText(string);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}