Building openjdk6 on openindiana

Kelly O'Hair kelly.ohair at oracle.com
Fri Feb 25 17:13:09 UTC 2011


On Solaris, the 64 bit build is not a complete jdk, you need to build  
32bit
first, then build 64bit, then fold the two together.

Build both then look at what is in the j2sdk-image of both.

-kto

On Feb 25, 2011, at 5:14 AM, Bart Coddens wrote:

> 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




More information about the build-dev mailing list