Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jun 2000 15:10:01 +0100
From:      Cliff Rowley <cliff@olive.co.uk>
To:        freebsd-java@freebsd.org
Subject:   Hint: compiling new JDK
Message-ID:  <393D0639.32364356@olive.co.uk>

next in thread | raw e-mail | index | archive | help
Just a quick hint for those people who are only using the Blackdown JDK
to bootstrap FreeBSD/JDK builds (and not for normal usage).

If you've already compiled and installed the FreeBSD JDK port and
compiled and installed a JIT, be sure to unset JAVA_COMPILER before
making a new version.  I just got bitten by that one, because the
Blackdown JDK couldnt find OpenJIT.  Took me a little while to discover
it, when the build reported my Linux JDK was not a valid JDK to build
with.

The problem comes around because the sanity check looks at the first
line outputted by '/usr/local/linux-jdk1.2.2/bin/java -version' in order
to check the version number.  The correct output would usually be:

java version "1.2.2"
Classic VM (build Linux_JDK_1.2.2_RC4, green threads, nojit)#

or similar.

In my case, it was:

Warning: JIT compiler "OpenJIT" not found. Will use interpreter.
java version "1.2.2"
Classic VM (build Linux_JDK_1.2.2_RC4, green threads, nojit)

and the sanity check obviously found no version number in the first
line.

Just issuing an 'unset JAVA_COMPILER' before the build will do the
trick.

Just a quickie :)

-- 
Cliff Rowley
Software Engineer
Olive Systems LTD
http://www.olive.co.uk


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?393D0639.32364356>