[kaffe] ecj-compiled kaffe fails in regression tests

Ito Kazumitsu kaz at maczuka.gcd.org
Thu Dec 8 17:58:49 PST 2005

From: Kiyo Inaba <inaba at src.ricoh.co.jp>
Date: Thu, 8 Dec 2005 13:54:21 +0900 (JST)

> >Using the following poor man's ecj,
> >
> >$ cat bin/ecj
> >#!/bin/sh
> >exec /usr/local/kaffe/bin/kaffe \
> >        -classpath $HOME/javalib/org.eclipse.jdt.core_3.1.1.jar \
> >        org.eclipse.jdt.internal.compiler.batch.Main \
> >        "$@"
> That's a good news! Could you please add something in 'FAQ.classlibrary-
> compile' for where we can get the jar file and this script?

OK,  how about this?

--- FAQ/FAQ.classlibrary-compile.orig	Wed Sep 21 15:02:00 2005
+++ FAQ/FAQ.classlibrary-compile	Fri Dec  9 10:55:09 2005
@@ -102,13 +102,34 @@
+If you cannot find ecj in this project site, just download Eclipse SDK
+(eclipse-SDK-3.1.1 at the time of this writing), and read the document
+"Compiling Java code". Then you will find that the following shell script
+will work as ecj.
+exec path_to_a_working_Java_VM \
+	-classpath path_to_org.eclipse.jdt.core.jar \
+	org.eclipse.jdt.internal.compiler.batch.Main \
+	"$@"
+By the way, there is a "distribution" of ecj itself in the debian
+repository (ecj-bootstrap).
 In order to compile kaffe's class library, you need to set JAVAC_FLAGS
 to "-source 1.4 -bootclasspath /full/path/to/builddir/libraries/javalib/lib/",
 with "/full/path/to/builddir" replaced by the full path to the directory
 where you are building the Kaffe source code.
+Now ./configure accepts an option to use ecj:
+  --with-ecj=ECJ          Define to use ECJ as the java compiler instead of
+                          jikes
+and you do not have to care about JAVAC_FLAGS.
 It works with ecj 0.548, pre-3.1.0 milestone-6, and should work with later 
-versions as well.
+versions as well.  The wrapping shell script of ecj shown above also works. 
 * kjc

More information about the kaffe mailing list