Busted rt.jar in diablo 1.5.0-7 amd64 distribution

Bradford Castalia Castalia at PIRL.LPL.Arizona.edu
Mon Jun 29 04:55:02 UTC 2009


After downloading, confirming md5 checksum, and installing using pkg_add the
diablo-jdk-freebsd6.amd64.1.5.0.07.01.tbz distribution I've encountered a
problem with the jre/lib/rt.jar containing the JFC classes that seems to
indicate that the jar file is busted.

To provide access to the PID value in the UNIXProcess class I patch this
class, and its Process interface definition, to provide an ID method. This
is done on all the Unix platforms where this is needed - Solaris/SPARC,
Apple/OS-X (x86 and PowerPC), Suse/Linux (amd64) - by using jar uf on the
rt.jar (and its equivalent for OS-X). This works as expected. However, I
am in the process of configuring a new FreeBSD amd64 (on Core i7) system
and finding that the jar uf fails on the rt.jar distributed by the FreeBSD
Java Project with the following error message:

java.util.zip.ZipException: invalid entry crc-32 (expected 0x5b50a89a but got 0xe9b76864)

The JRE is:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)

I've copied the rt.jar to a Suse/Linux (amd64) system and get the same
exception there:

java.util.zip.ZipException: invalid entry CRC (expected 0x5b50a89a but got 0xe9b76864)

The JRE is:

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)

Since this problem does not occur on the other (non-FreeBSD) platforms, nor
does it occur on a 32-bit FreeBSD platform with diablo-1.5 -

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b00)
Java HotSpot(TM) Client VM (build diablo-1.5.0_06-b00, mixed mode)

- I can only conclude that the rt.jar in the freebsd6.amd64.1.5.0.07.01
distributions is busted.

-- 

Bradford Castalia
Principal Systems Analyst
HiRISE Operations Center
University of Arizona



More information about the freebsd-java mailing list