Run Batch File Or Command From JSP

I have a simple JSP file, code is below. I'm trying to run a batch file that simply contains the line :

java -ss262144 -oss819200 -classpath Topics.jar Building

but having no luck. Any ideas?

<%@ page language="java" import="java.io.*" %>

<%

try {

Runtime rt = Runtime.getRuntime();

Process p = rt.exec("c:/test.bat");

out.print("<center><a href='javascript:history.go(-1)'>Return</a>");

}

catch(Exception e){e.printStackTrace();

out.print("no");

}

%>

[555 byte] By [Ghostrider_1a] at [2007-11-27 11:41:22]
# 1

no idea, some help here though:

http://forum.java.sun.com/thread.jspa?threadID=554143&messageID=2715468

skp71a at 2007-7-29 17:37:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...