How to capture java compiler errors messages

Discussion in 'Java' started by viber101, Jul 12, 2008.

  1. viber101

    viber101 New Member

    Joined:
    Jul 12, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Im new to java and i want to know how to capture java compiler syntax error messages. . .because i wanted to save the compile errors in a storage area say like a database. please help me.
     
  2. XXxxImmortalxxXX

    XXxxImmortalxxXX New Member

    Joined:
    Jun 27, 2007
    Messages:
    561
    Likes Received:
    19
    Trophy Points:
    0
    have you tryed

    Code:
    $javac ClassToCompile.java>file.txt
    
    yet?
     
  3. viber101

    viber101 New Member

    Joined:
    Jul 12, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i already tried it. it saves the whole java source code including syntax errors but i just want is save only the syntax errors. .im using bluej compiler which is convenient to use. is there posibility that i can save those error massages in a file using bluej?
     
  4. XXxxImmortalxxXX

    XXxxImmortalxxXX New Member

    Joined:
    Jun 27, 2007
    Messages:
    561
    Likes Received:
    19
    Trophy Points:
    0
    yea sure is ill post it up in about 30 minutes k
     
  5. viber101

    viber101 New Member

    Joined:
    Jul 12, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    anyone please help me. . .i need to know how to do it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice