HotSpot build keeps using JDK6

Nicholas Riley njriley at uiuc.edu
Thu May 22 00:11:17 PDT 2008


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>




More information about the hotspot-dev mailing list