JDK16 on FreeBSD 8-BETA2

Rick C. Petty rick-freebsd2008 at kiwi-computer.com
Wed Aug 12 08:22:59 UTC 2009


On Wed, Aug 12, 2009 at 10:09:00AM +0900, Daichi GOTO wrote:
> I have tried to test 8-BETA2 (after shared library
> version dumped) and JDK16. From a conclusion,
> I cannot build or use JDK16.

<snip>

> Diablo JDK16 couldn't build JDK16/OpenJDK16.
> Linux Sun JDK is in the same situation.
> Is there anyone who uses JDK16 on BETA2?

I've been noticing the same thing.  I installed a fresh diablo-jdk16 port
and the JVM won't start:

# env JAVA_VENDOR=freebsd java -version
Error occurred during initialization of VM
Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so

~~~

The same thing happens when trying to build java/jdk16, because it needs a
working JVM to boostrap:

...
/usr/local/diablo-jdk1.6.0/bin/javap javax.xml.transform.TransformerFactory > /dev/null 2>&1; \
	if [ $? -ne 0 ]; then \
	  /usr/local/diablo-jdk1.6.0/bin/java -version; \
	  echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \
	  "to bootstrap this build" 1>&2; \
	  exit 1; \
	fi
Error occurred during initialization of VM
Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so
*** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this build
gmake[4]: *** [check_j2se_version] Error 1
...

# file /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so
/usr/local/diablo-jdk1.6.0/jre/lib/amd64/libzip.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, not stripped
# uname -a
FreeBSD myhostname 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r196086: Sat Aug  8 17:22:29 CDT 2009     root at myhostname:/usr/obj/usr/src/sys/GENERIC  amd64

~~~

Is this a result of all the shared library versions being bumped and
shifting APIs?

I am thinking of hacking something together as a replacement bootstrap.
It will involve wrapping the javavmwrapper script to call into a pre-8.0
chroot (with a working jdk) and a large number of symlinks.

Does anyone have any better ideas?  Are the folks who made diablo-caffe
working on this problem?

-- Rick C. Petty


More information about the freebsd-java mailing list