aspose file tools*
The moose likes Java in General and the fly likes How to get Java error message from command line. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to get Java error message from command line." Watch "How to get Java error message from command line." New topic
Author

How to get Java error message from command line.

Rax Wer
Greenhorn

Joined: Mar 31, 2010
Posts: 12
Hello All,

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..

[url]http://www.innovation.ch/java/java_compile.html
[/url]
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.

Thanks in Advance..


Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not sure what this has to do with JDBC?

I'm guessing you are running the java compiler with ProcessBuilder? You can get the output stream from the process after you start it.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29241
    
139

Moving out of JDBC forum.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Java error message from command line.
 
Similar Threads
Cannot run tomcat...pls help
Command for running a java file
Problem with tomcat6X Stratup on windows vista
Can not create java virtual machine
ORA-1113:Can not open database