<no subject>

Gary Benson gbenson at redhat.com
Mon Apr 6 02:22:34 PDT 2009


This error (The type java.lang.Object cannot be resolved) happens when
ecj's bootclasspath is wrong.

Cheers,
Gary

Neale Ferguson wrote:
> This is my first attempt building zero and am making it to this
> point before bombing out:
> 
> ANT_OPTS=-Djava.io.tmpdir='/home/neale/icedtea-1.9/openjdk-ecj/build/linux-s
> 390x/langtools/build/ant-tmp' ant -Djdk.version=1.7.0_0
> -Dfull.version='1.7.0_0-b50'  -Drelease=1.7.0_0 -Dbuild.number=b50
> -Djavac.debug=true -Djavac.target=5
> -Dboot.java.home=/home/neale/icedtea-1.9/bootstrap/jdk1.6.0
> -Djavac.executable=/home/neale/icedtea-1.9/bootstrap/jdk1.6.0/bin/javac
> -Dbuild.dir=/home/neale/icedtea-1.9/openjdk-ecj/build/linux-s390x/langtools/
> build 
> -Ddist.dir=/home/neale/icedtea-1.9/openjdk-ecj/build/linux-s390x/langtools/d
> ist build
> Buildfile: build.xml
> 
> -def-check:
> 
> -check-boot.java.home:
> 
> -def-pcompile:
>     [mkdir] Created dir:
> /home/neale/icedtea-1.9/openjdk-ecj/build/linux-s390x/langtools/build/toolcl
> asses
>     [javac] Compiling 2 source files to
> /home/neale/icedtea-1.9/openjdk-ecj/build/linux-s390x/langtools/build/toolcl
> asses
>     [javac] ----------
>     [javac] 1. ERROR in
> /home/neale/icedtea-1.9/openjdk-ecj/langtools/make/tools/CompileProperties/C
> ompileProperties.java (at line 1)
>     [javac]     /*
>     [javac]     ^
>     [javac] The type java.lang.Object cannot be resolved. It is indirectly
> referenced from required .class files
>     [javac] ----------
>     [javac] 2. ERROR in
> /home/neale/icedtea-1.9/openjdk-ecj/langtools/make/tools/CompileProperties/C
> ompileProperties.java (at line 1)
> :
> :
> ... A total of 100 errors in all.
> 
> I¹m sure this is a newbie problem but can someone lend me a clue? I'm using
> the IBM 1.6 JDK.
> 
> Neale
> 
> 
> 

-- 
http://gbenson.net/



More information about the zero-dev mailing list