[kaffe] Kaffe and ecj

Guilhem Lavaux guilhem at kaffe.org
Sun Nov 27 08:29:56 PST 2005


Hi Wolfgang,

It looks like ecj/ant discover the bootclasspath automatically 
somewhere. However with the integration of GNU Classpath the runtime jar 
is now called glibj.zip (maybe we should change this). Ant does not 
discover this and produce a wrong bootclasspath/classpath. As a 
consequence ecj is not able to see java.lang.Object. I am thinking about 
a workaround...

Regards,

Guilhem.

Wolfgang Baer wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> 
> public class Test {
> 
> 
> }
> 
> 
> ------------------------------------------------------------------------
> 
> <project basedir="." default="compile">
> <target name="compile">
> <javac srcdir="${basedir}" />
> </target>
> </project>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe





More information about the kaffe mailing list