Save This Page
Home » openjdk-7 » sun.tools » javac » [javadoc | source]
sun.tools.javac
public class: Main [javadoc | source]
java.lang.Object
   sun.tools.javac.Main

All Implemented Interfaces:
    Constants

Deprecated! As - of J2SE 1.3, the preferred way to compile Java language sources is by using the new compiler, com.sun.tools.javac.Main.

Main program of the Java compiler WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
Field Summary
 String program    Name of the program. 
 OutputStream out    The stream where error message are printed. 
public static final  int EXIT_OK    Exit status. We introduce a separate integer status variable, and do not alter the convention that 'compile' returns a boolean true upon a successful compilation with no errors. (JavaTest relies on this.) 
public static final  int EXIT_ERROR     
public static final  int EXIT_CMDERR     
public static final  int EXIT_SYSERR     
public static final  int EXIT_ABNORMAL     
Constructor:
 public Main(OutputStream out,
    String program) 
    Constructor.
Method from sun.tools.javac.Main Summary:
compilationPerformedSuccessfully,   compilationReportedErrors,   compile,   getExitStatus,   getText,   getText,   getText,   getText,   getText,   initResource,   main,   usage_error
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.tools.javac.Main Detail:
 public boolean compilationPerformedSuccessfully() 
      Deprecated!
 public boolean compilationReportedErrors() 
      Deprecated!
 public synchronized boolean compile(String[] argv) 
      Deprecated!
    Run the compiler
 public int getExitStatus() 
      Deprecated!
 public static String getText(String key) 
      Deprecated!
    get and format message string from resource
 public static String getText(String key,
    int num) 
      Deprecated!
 public static String getText(String key,
    String fixed) 
      Deprecated!
 public static String getText(String key,
    String fixed1,
    String fixed2) 
      Deprecated!
 public static String getText(String key,
    String fixed1,
    String fixed2,
    String fixed3) 
      Deprecated!
 static  void initResource() 
      Deprecated!
    Initialize ResourceBundle
 public static  void main(String[] argv) 
      Deprecated!
    Main program
 public  void usage_error() 
      Deprecated!
    Print usage message and make exit status an error. Note: 'javac' invoked without any arguments is considered be an error.