Hi all,

kaffe does not work with ecj used with ant for compilation.

Putting ecj.jar into the normal classpath results in the following:

[EMAIL PROTECTED]:~/kaffe_ecj_test$ JAVA_HOME=/usr/lib/kaffe ant -lib /usr/share/java/ecj.jar
Buildfile: build.xml

compile:
    [javac] Compiling 1 source file
    [javac] ----------
    [javac] 1. ERROR in /home/wbaer/kaffe_ecj_test/Test.java
    [javac]  (at line 1)
    [javac]
    [javac] public class Test {
    [javac]     ^
[javac] The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
    [javac] ----------
    [javac] 1 problem (1 error)

BUILD FAILED
/home/wbaer/kaffe_ecj_test/build.xml:3: Compile failed; see the compiler error output for details.


The needed build.compiler property is already set internal in VMSystemProperties.java to org.eclipse.jdt.core.JDTCompilerAdapter.

Steps to reproduce:

Put the attached files in one directory and use the above command or with
-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter if not set internal.

Regards,
Wolfgang
public class Test {


}
<project basedir="." default="compile">
<target name="compile">
<javac srcdir="${basedir}" />
</target>
</project>
_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to