How do i get the output of java compiler error messages?

View: New views
5 Messages — Rating Filter:   Alert me  

How do i get the output of java compiler error messages?

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i am doing a simple application that will collect java compile errors and store these error in a database. i chose bluej (www.bluej.com) it shows one compilation at a time. i think this will be much more convenient for me. can you make a suggestion on how can i be able to do this? your help will be much appreciated. thanks in advance.
[Message sent by forum member 'hoyroy' (hoyroy)]

http://forums.java.net/jive/thread.jspa?messageID=285941

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: How do i get the output of java compiler error messages?

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hoyroy,

I don't think this problem has anything to do with Java ME or Java in general. The Java compile sends compiler errors to the console output so you need to redirect them, capture them, and store them in your database. This is dependent on the IDE and operating system you are using. You can probably build a little script in perl or something to accomplish this.

Hope this helps,

-- Terrence
[Message sent by forum member 'terrencebarr' (terrencebarr)]

http://forums.java.net/jive/thread.jspa?messageID=285974

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: How do i get the output of java compiler error messages?

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ya it'd be great if, in addition to Throwable.getMessage() we had Throwable.getStackTrace()

wishful thinking... hey phoneME.. how about that?
[Message sent by forum member 'pandora808' (pandora808)]

http://forums.java.net/jive/thread.jspa?messageID=286076

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: How do i get the output of java compiler error messages?

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, you can always add getMessage() and getStackTrace() to phoneME for debugging purposes.

-- Terrence
[Message sent by forum member 'terrencebarr' (terrencebarr)]

http://forums.java.net/jive/thread.jspa?messageID=286345

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: How do i get the output of java compiler error messages?

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i'd be content with Throwable.toString() just being the String that printStackTrace() prints
[Message sent by forum member 'pandora808' (pandora808)]

http://forums.java.net/jive/thread.jspa?messageID=286603

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".
LightInTheBox - Buy quality products at wholesale price