什么是 Eclipse Compiler for Java (ECJ)

An incremental Java compiler. Implemented as an Eclipse builder, it is based
on technology evolved from VisualAge for Java compiler.In particular, it
allows to run and debug code which still contains unresolvederrors.

Since 3.2, it is also available as a separate download. The name of the file
is ecj.jar . Its corresponding sourceis also available. To get them, go to
the download page and
search for the section JDT Core Batch Compiler . This jar contains
thebatch compiler and the javac ant adapter.

The technical challenge for incremental building is to determine exactly what
needs to be rebuilt. For example, theinternal state maintained by the Java
builder includes things like a dependencygraph and a list of compilation
problems reported. This information is used during an incremental build to
identify which classes need to be recompiled in response to a change in a Java
resource.


http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-
using_batch_compiler.htm


http://download.eclipse.org/eclipse/downloads/drops4/R-4.4-201406061215/#JDTCORE


http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Fguide%2Fjdt_api_compile.htm

http://stackoverflow.com/questions/3061654/what-is-the-difference-between-
javac-and-the-eclipse-compiler