IcedTea/OpenJDK bootstrapping issue

Andrew John Hughes gnu_andrew at member.fsf.org
Thu Jan 21 07:18:29 PST 2010


2010/1/21 Ludovic Courtès <ludo at gnu.org>:
> Hi,
>
> Andrew John Hughes <gnu_andrew at member.fsf.org> writes:
>
>> 2010/1/21 Ludovic Courtès <ludo at gnu.org>:
>
> [...]
>
>>>>> (Full build log at
>>>>> <http://www.fdn.fr/~lcourtes/tmp/icedtea-1.6.1.20100121.log>.)
>
> [...]
>
>> Your ant build is not finding the rt.jar with the classfiles.  It
>> actually reports an error about tools.jar:
>>
>> Unable to locate tools.jar. Expected to find it in
>> /nix/store/j4zypm6zmkffn3dqphijb6wfr7wv88xz-gcj-4.4.2/lib/tools.jar
>
> Why does it expect it in this particular path?  Which package does
> ‘tools.jar’ normally come with?  (Sorry, I’m not very familiar with the
> Java environment as you can see...)
>

Because ant expects a Sun JDK layout...

GCJ 4.4 has an option to generate this layout:

--with-java-home=$GCC_INSTALL --enable-java-home \
    --with-jvm-root-dir=$GCC_INSTALL/jdk

>> Does ant work for you with other builds?
>
> Yes.  This version of Ant was built with GCJ.  It was then used to
> compile things like Xalan, Xerces, and Rhino.

It seems something is broken with regard to Ant.  The fact it's
looking for tools.jar in your gcj home directory rather than
bootstrap/jdk1.6.0 suggests it's ignoring the setting of
bootstrap.java.home.  Have you checked that bootstrap/jd1.6.0 has a
valid jar file in jre/lib/rt.jar?  I would guess it does as the
earlier stages have worked, but Ant is reverting to your system
install.

>
> Thanks,
> Ludo’.
>



-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the distro-pkg-dev mailing list