Groups > IBM > WebSphere Studio Device Developer > Re: Redirect console output to text file




Redirect console output to text file

Redirect console output to text file
Sat, 10 Nov 2007 11:34:41 +010
Hi,

I'm having problems with my application running in a PDA with J9, and I've 
activated the debugging to find out what's the problem. However I cannot 
read the exception because J9's console only provides the last lines of the 
console output (a lot of lines but not enough for me).

Is there anyway to redirect/pipe the console output to a text file? I've 
tried with "j9 ... > output.txt" but this type of redirection
doesn't work 
in Windows Mobile.

Thank you in advance,
Jaime 

Post Reply
Re: Redirect console output to text file
Tue, 13 Nov 2007 14:07:17 +000
On 11/10/2007 05:34:41 AM "Jaime"wrote:
>Is there anyway to redirect/pipe the console output to a text file? I've
>tried with "j9 ... > output.txt" but this type of redirection
doesn't 
work
>in Windows Mobile.

Do you have the following option in your .lnk file?

Post Reply
Re: Redirect console output to text file
Sat, 17 Nov 2007 11:10:15 +010
Thanks. It works. I'm afraid that this option is not very well documented.

<JRancier@penntraffic.com> escribió en el mensaje 
news:fhcb2l$2fk5m$2@news.boulder.ibm.com...
> On 11/10/2007 05:34:41 AM "Jaime"wrote:
>>Is there anyway to redirect/pipe the console output to a text file?
I've
>>tried with "j9 ... > output.txt" but this type of
redirection doesn't
> work
>>in Windows Mobile.
>
> Do you have the following option in your .lnk file?
>
> "-tofile:\Java\console.out" 

Post Reply
Re: Redirect console output to text file
Wed, 21 Nov 2007 18:58:02 +000
On 11/17/2007 05:10:15 AM "Jaime"wrote:

>Thanks. It works. I'm afraid that this option is not very well 
documented.

Agreed.  I still haven't found a document which lists/explains all the JVM 
options.  The following option is also helpful when you don' t have an 
integrated IDE to debug, this will display your line numbers:

"-Xlinenumbers"

Jeff
Post Reply
about | contact