[kaffe] CVS kaffe (kaz): FAQ/FAQ.classlibrary-compile: Updated the
description of ecj.
Kaffe CVS
cvs-commits at kaffe.org
Fri Dec 9 17:47:45 PST 2005
PatchSet 6992
Date: 2005/12/10 01:39:14
Author: kaz
Branch: HEAD
Tag: (none)
Log:
2005-12-10 Ito Kazumitsu <kaz at maczuka.gcd.org>
* FAQ/FAQ.classlibrary-compile: Updated the description of ecj.
Members:
ChangeLog:1.4513->1.4514
FAQ/FAQ.classlibrary-compile:1.23->1.24
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4513 kaffe/ChangeLog:1.4514
--- kaffe/ChangeLog:1.4513 Thu Dec 8 21:28:55 2005
+++ kaffe/ChangeLog Sat Dec 10 01:39:14 2005
@@ -1,3 +1,7 @@
+2005-12-10 Ito Kazumitsu <kaz at maczuka.gcd.org>
+
+ * FAQ/FAQ.classlibrary-compile: Updated the description of ecj.
+
2005-12-08 Guilhem Lavaux <guilhem at kaffe.org>
* developers/update-vm-list: Sort files before adding them to
Index: kaffe/FAQ/FAQ.classlibrary-compile
diff -u kaffe/FAQ/FAQ.classlibrary-compile:1.23 kaffe/FAQ/FAQ.classlibrary-compile:1.24
--- kaffe/FAQ/FAQ.classlibrary-compile:1.23 Tue Sep 20 19:53:44 2005
+++ kaffe/FAQ/FAQ.classlibrary-compile Sat Dec 10 01:39:17 2005
@@ -102,13 +102,34 @@
http://www.eclipse.org
+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.
+
+#!/bin/sh
+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