[kaffe] Kaffe and ecj

Wolfgang Baer WBaer at gmx.de
Sun Nov 6 11:34:50 PST 2005


Hi all,

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

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

wbaer at ursus:~/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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.java
Type: text/x-java
Size: 25 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20051106/0e5e83a7/attachment-0002.java 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 115 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20051106/0e5e83a7/attachment-0002.bin 


More information about the kaffe mailing list