Building openjdk6 on openindiana

Bart Coddens bart.coddens at gmail.com
Fri Feb 25 13:14:09 UTC 2011


Hi List,

I'm building openjdk6 from mercurial on openindiana, a solaris fork.
I'm using this build scirpt:

 #!/bin/sh
cd /source/jdk6
unset CLASSPATH
unset JAVA_HOME
unset LD_LIBRARY_PATH
env -i
PATH=/opt/SUNWspro/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/ccs/lib:/usr/gnu/bin
\
 LANG=C \
gmake all \
 ALT_BOOTDIR=/usr/jdk/instances/jdk1.6.0 \
 ALT_PREVIOUS_JDK_IMAGE=/usr/jdk/instances/jdk1.6.0 \
 MILESTONE=openindiana \
 BUILD_NUMBER=b21 \
 ENFORCE_C_COMPILER_REV=5.8 \
 ENFORCE_COMPILER_REV=5.8 \
 ALT_JDK_IMPORT_PATH=/usr/jdk/instances/jdk1.6.0 \
 ALT_CUPS_HEADERS_PATH=/usr/include \
 ALLOW_DOWNLOADS=true \
 ARCH_DATA_MODEL=64 \
 ALT_OUTPUTDIR=/source/openjdk6-build \
 ALT_COMPILER_PATH=/opt/SUNWspro/bin

Everything seems to go fine, but when I try to run java -version from this
path:

/source/openjdk6-build/j2sdk-image/bin/amd64

I get this error:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

When I run java from this path:

/source/openjdk6-build/bin/amd64

I works fine:

openjdk version "1.6.0-openindiana"
OpenJDK Runtime Environment (build 1.6.0-openindiana-b21)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Best regards,
Bart Coddens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20110225/4b8d0d87/attachment.html>


More information about the build-dev mailing list