Results 1 to 3 of 3

Thread: Redirect Javac Output

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Resolved Redirect Javac Output

    This probably doesn't belong here... but I have no idea with what regularity the other forums are checked, and this is something I would like to resolve shortly.

    Basically I need a way to get the errors that the javac compiler will spit back at you when you use it on command line. I have tried a few things in dos mainly this:

    javac test.java > test.txt

    But this only returns a blank file, I have a feeling I know why. If anyone knows what I could do that would be great.




    <Deleted the OT posts, and added the green check mark>
    Last edited by NoteMe; Mar 4th, 2005 at 05:17 PM.


    "X-mas is 24.Desember you English morons.." - NoteMe

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: [Serious] Redirect Javac Output

    Use the Xstdout option

    javac -Xstdout output.txt MyClass.java
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Re: [Serious] Redirect Javac Output

    Thanks for the help guys =)


    "X-mas is 24.Desember you English morons.." - NoteMe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width