Topic
  • 3 replies
  • Latest Post - ‏2007-11-21T18:58:02Z by SystemAdmin
SystemAdmin
SystemAdmin
9394 Posts

Pinned topic Redirect console output to text file

‏2007-11-10T10:34:41Z |
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
Updated on 2007-11-21T18:58:02Z at 2007-11-21T18:58:02Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: Redirect console output to text file

    ‏2007-11-13T14:07:17Z  
    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"
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: Redirect console output to text file

    ‏2007-11-17T10:10:15Z  
    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"
    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"
  • SystemAdmin
    SystemAdmin
    9394 Posts

    Re: Redirect console output to text file

    ‏2007-11-21T18:58:02Z  
    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"
    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