public class

Main

extends Object
implements Constants
java.lang.Object
   ↳ sun.tools.javac.Main

This class is 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.

Class Overview

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.

Summary

Constants
int EXIT_ABNORMAL
int EXIT_CMDERR
int EXIT_ERROR
int EXIT_OK Exit status.
int EXIT_SYSERR
[Expand]
Inherited Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
Main(OutputStream out, String program)
Constructor.
Public Methods
boolean compilationPerformedSuccessfully()
boolean compilationReportedErrors()
synchronized boolean compile(String[] argv)
Run the compiler
int getExitStatus()
static String getText(String key, String fixed1, String fixed2, String fixed3)
static String getText(String key)
get and format message string from resource
static String getText(String key, String fixed)
static String getText(String key, int num)
static String getText(String key, String fixed1, String fixed2)
static void main(String[] argv)
Main program
void usage_error()
Print usage message and make exit status an error.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int EXIT_ABNORMAL

Constant Value: 4 (0x00000004)

public static final int EXIT_CMDERR

Constant Value: 2 (0x00000002)

public static final int EXIT_ERROR

Constant Value: 1 (0x00000001)

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.)

Constant Value: 0 (0x00000000)

public static final int EXIT_SYSERR

Constant Value: 3 (0x00000003)

Public Constructors

public Main (OutputStream out, String program)

Constructor.

Public Methods

public boolean compilationPerformedSuccessfully ()

public boolean compilationReportedErrors ()

public synchronized boolean compile (String[] argv)

Run the compiler

public int getExitStatus ()

public static String getText (String key, String fixed1, String fixed2, String fixed3)

public static String getText (String key)

get and format message string from resource

public static String getText (String key, String fixed)

public static String getText (String key, int num)

public static String getText (String key, String fixed1, String fixed2)

public static void main (String[] argv)

Main program

public void usage_error ()

Print usage message and make exit status an error. Note: 'javac' invoked without any arguments is considered be an error.