compiling java program

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-04-19T06:40:58Z Indexed on 2010/04/19 6:43 UTC
Read the original article Hit count: 184

Filed under:
|
|
|

If the java program is compiled as

javac t1.java > a //error contents redirecedt to a,file a.But a doesnt have the error contents

The contents of t1.java is as:

  class t1{
    public static void main(String[] args) {
    System.out.printn("Hello World!"); // Display the string.
  }
  }

So now there is a error i.e, println is written as print n ,how to capture this error in file a

The command is executed from linux command prompt

Thanks....

© Stack Overflow or respective owner

Related posts about java

Related posts about javac