java.lang类型错误我该怎么办?

时间:2013-04-20 04:25:47

标签: error-handling compiler-errors

在我的系统中,我正在运行apache_tomcat_6.0,但我在E盘中设置了apache_tomcat_6.0.18的文件,我从E盘中获取了startup.bat文件,所以在执行以下代码时出现错误

ssssssssssss:java.lang.ProcessImpl@19e3cd51

E:/nymble/Nymble/code/apache-tomcat-6.0.18/bin/startup.bat返回0

private void downloadActionPerformed(java.awt.event.ActionEvent evt)
{
Runtime r = Runtime.getRuntime();
Process p = null;
String cmd = "E:/nymble/Nymble/code/apache-tomcat-6.0.18/bin/startup.bat";
try {
     p = r.exec(cmd);
     p.waitFor(); 
 } 
 catch (Exception e) 
{
  System.out.println("error executing " + cmd);
}
System.out.println("ssssssssssss : "+p);
System.out.println(cmd + " returned "+ p.exitValue());
}

0 个答案:

没有答案