From owner-freebsd-java Fri Dec 15 15:26: 8 2000 From owner-freebsd-java@FreeBSD.ORG Fri Dec 15 15:26:05 2000 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from juice.shallow.net (node16229.a2000.nl [24.132.98.41]) by hub.freebsd.org (Postfix) with ESMTP id EA36537B400 for ; Fri, 15 Dec 2000 15:26:04 -0800 (PST) Received: from localhost (joshua@localhost) by juice.shallow.net (8.11.1/8.11.1) with ESMTP id eBFNQ2l79166; Sat, 16 Dec 2000 00:26:02 +0100 (CET) (envelope-from joshua@roughtrade.net) Date: Sat, 16 Dec 2000 00:26:01 +0100 (CET) From: Joshua Goodall Sender: joshua@juice.shallow.net To: Zsolt Kuti Cc: freebsd-java@FreeBSD.ORG Subject: Re: OpenJIT problem In-Reply-To: <20001212104248.A996@kuti.cetelem.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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