HotSpot build keeps using JDK6
Andrew John Hughes
gnu_andrew at member.fsf.org
Thu May 22 01:09:07 PDT 2008
2008/5/22 Nicholas Riley <njriley at uiuc.edu>:
> In an effort to reduce HotSpot build time I'm trying to use the Makefile
> in hotspot/make/linux. I have a full OpenJDK build tree for which I'm
> trying to get HotSpot to use the JDK bits.
>
> However, instead it's seeming to link against the Java 6 I have
> installed.
>
> I'm building as follows:
>
> export ALT_BOOTDIR=/path/to/openjdk/build/linux-i586
> LANG=C JAVA_HOME= LD_LIBRARY_PATH= CPPFLAGS= LDFLAGS= make debug
>
> But then I get:
>
> % LD_LIBRARY_PATH=$PWD ./gamma -version
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> OpenJDK Server VM (build 13.0-b01-internal-debug, mixed mode)
>
> If I try to set JAVA_HOME explicitly:
>
> % JAVA_HOME=~oj/build/linux-i586 LD_LIBRARY_PATH=$PWD ./gamma -version
> There was an error trying to initialize the HPI library.
> Could not create the Java virtual machine.
>
> So I'm guessing it's using Java 6 libraries when building which is why
> it wants to use Java 6 at runtime. Is there another build setting I
> need to set to get it to use the OpenJDK bits instead?
>
> Thanks,
> --
> Nicholas Riley <njriley at uiuc.edu>
>
>
Might be a stupid question, but you have built the JDK part of the
tree already right?
--
Andrew :-)
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 hotspot-dev
mailing list