I am trying to compile a java file on my own server and returning its output. But if there is an error in file, we get the error message on command prompt. i just want to have that error message from command prompt and return it to the user...
One example is this link..
Submit a java file with an error. It will give you error message. I want the same thing. But dont know how this can be done.