hi friends.here out is the response object .i am trying to return a string from the command line but i am getting the output as an object that is @some numbers .actually i m trying to read this string from the command line and returning it to the browser.
// String path="/home/muzammil/apache-tomcat-6.0.18/work/Catalina/localhost/remote_compile/"+filen;
Process p = Runtime.getRuntime().exec
("java -classpath /home/muzammil/apache-tomcat-6.0.18/work/Catalina/localhost/remote_compile/" +filen);
BufferedReader input =
while (line != null)
out.println("Output is:" +line );
Also, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
Joined: Jan 13, 2010
yes i m trying to invoke arguments returned from command line within the servlet ...