Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2000 00:26:01 +0100 (CET)
From:      Joshua Goodall <joshua@roughtrade.net>
To:        Zsolt Kuti <kuti@kuti.cetelem.hu>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: OpenJIT problem
Message-ID:  <Pine.BSF.4.21.0012160010210.24594-100000@juice.shallow.net>
In-Reply-To: <20001212104248.A996@kuti.cetelem.hu>

next in thread | previous in thread | raw e-mail | index | archive | help

I had similar troubles, and found success with a kludge:

(having done make install on the port, or added the binary package;)

# cd /usr/local/jdk1.2.2/jre
# rm -f lib/i386/libOpenJIT.so                  (deleting the symlink)
# cp ../../lib/libOpenJIT.so lib/i386/
# mkdir classes && cd classes
# ../../bin/jar xvf ../../../lib/OpenJIT/OpenJIT.jar
# logout
$ java -Djava.compiler=OpenJIT
java version "1.2.2"
Classic VM (build jdk1.2.2-FreeBSD:root:2000/11/11-13:10, green threads, OpenJIT)
$ 

Why did I unroll OpenJIT.jar into the slightly magical JRE classes
directly? ... because trial-and-error techniques showed that it worked!
Placing OpenJIT.jar into the classpath or in jre/lib/exit/ was
unsuccessful. I didn't investigate, and put it down to some quirk of
classloader ordering.

This is a fully built & merged 4.2-STABLE (built over 4.0-RELEASE) from a
2000/12/02 snapshot.

- J (fingers crossed for a 1.3 hotspot port :))


-[ Joshua Goodall ]-----------------------------------------------              
-[ Chief Systems Architect, IP R&D ]----- Cook, Geek, Lover ------              
-[ joshuag@interxion.com ]--------------- joshua@roughtrade.net --              

On Tue, 12 Dec 2000, Zsolt Kuti wrote:

> Hello!
> 
> I am struggling with OpenJIT I can not make work with jdk1.2.2.
> First I tried to set and export env vars as was written in its readme (LD_CONFIG_PATH, CLASSPATH, JAVA_COMPILER).
> java warns: OpenJIT not found.
> 
> Then tried to use so.hints to let the system know where is this shared lib.
> To test how ldconfig produces the hint file I did:
> ldconfig -elf -f hintfile /usr/local/lib/OpenJIT
> This resulted in a hintfile did show the searchdir, but no libOpenJIT.so at all.
> 
> Please help me, what I am missing!
> Thanks
> 
> Zsolt
> 
> --------------
> Zsolt Kuti 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
> 



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?Pine.BSF.4.21.0012160010210.24594-100000>