Life at Eclipse

Musings on the Eclipse Foundation, the community and the ecosystem

ECJ Adoption

I just stumbled across the news that the GCJ team is now using the Eclipse Compiler for Java as the front end to GCJ.

This is pretty darn cool. ECJ is a rock-solid and highly regarded technology. I’m glad to see it getting even more adoption. It has been used in a number of Apache projects for a while as well (although finding a useful reference to that proved harder than I thought…anyone out there have a reference handy?)

Written by Mike Milinkovich

January 21, 2007 at 10:07 pm

Posted in Foundation

5 Responses

Subscribe to comments with RSS.

  1. Harmony uses ECJ to do default compilation in the build. It’s documented in the ‘README‘ file:Modifying the Java Build Compiler———————————By default, the Java compiler is set to use the ECJ compiler. This value is set in the HARMONY_TRUNK/make/properties.xml and looks like the following XML element.<property name=”hy.javac.compiler” value=”org.eclipse.jdt.core.JDTCompilerAdapter” />The compiler can be set to “modern”, as per the Ant manual, which will cause Ant to use the JDK’s ‘javac’ tool. You may also need to change the ‘build.compilerarg’ to ‘-nowarn’ instead of the JDT ‘-warn:none’.

    AlBlue

    January 22, 2007 at 12:01 am

  2. Of course, GWT also uses ECJ, as noted in the terms and conditions. It’s available under an Apache License, but from Google rather than Apache.

    AlBlue

    January 22, 2007 at 12:03 am

  3. Doesn’t Tomcat also use it? From: Apache Tomcat Servlet HowTo:”The Eclipse JDT Java compiler is now used to perform JSP java source code compilation.”

    Vineet

    January 22, 2007 at 1:15 am

  4. I had also forgotten about another adopter: IntelliJ

    Mike Milinkovich

    January 22, 2007 at 1:07 pm

  5. JBoss Rules uses ECJ. Actually we use JCI as an abstraction layer that allows us to compile rules with Janino or ECJ. JCI also abstracts Groovy, which we might look into using in the future.Mark ProctorJBoss Rules Project Leadhttp://markproctor.blogspot.com/

    Mark Proctor

    January 27, 2007 at 5:33 pm


Comments are closed.

%d bloggers like this: