From owner-freebsd-java Sun Feb 2 20:27:44 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FD2A37B401 for ; Sun, 2 Feb 2003 20:27:42 -0800 (PST) Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EE5343F75 for ; Sun, 2 Feb 2003 20:27:40 -0800 (PST) (envelope-from shudo@computer.org) Received: from rpsmtp1.aist.go.jp by mx1.aist.go.jp with ESMTP id h134RXs02542 for ; Mon, 3 Feb 2003 13:27:33 +0900 (JST) env-from (shudo@computer.org) Received: from mail05.aist.go.jp by rpsmtp1.aist.go.jp with ESMTP id h134RXS24417 for ; Mon, 3 Feb 2003 13:27:33 +0900 (JST) env-from (shudo@computer.org) Received: from aist.go.jp by mail05.aist.go.jp with ESMTP id h134RXb23643 for ; Mon, 3 Feb 2003 13:27:33 +0900 (JST) env-from (shudo@computer.org) Date: Mon, 03 Feb 2003 13:27:32 +0900 (JST) Message-Id: <20030203.132732.596520920.shudo@localhost> To: java@FreeBSD.ORG Subject: Re: shujit From: shudo@computer.org In-Reply-To: References: X-Mailer: Mew version 2.2 on XEmacs 21.4.8 (Honest Recruiter) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Feb__3_13:27:32_2003_834)--" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----Next_Part(Mon_Feb__3_13:27:32_2003_834)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: bruno schwander > Trying to get shujit working, but java seems to never find it. > > "Warning: JIT compiler "shujit" not found. Will use interpreter." > > I moved libshujit.so to /usr/local/jdk1.3.1/jre/lib/i386 This path is correct. How did you obtain the shared library libshujit.so? Have you compiled shuJIT with JDK 1.3.1? A JIT compiler have to be compiled with the version of JDK which hosts the JIT. You have to compile shuJIT by yourself with JDK 1.3.1 or get the compiled binary. JDK fails in loading a JIT compiler when a symbol in the JIT cannot be resolved. The attached program which tries to load a shared library is useful to find such a symbol. % java LoadLibrary Test shujit Succeeded. Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ ----Next_Part(Mon_Feb__3_13:27:32_2003_834)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="LoadLibraryTest.java" public class LoadLibraryTest { private void start(String[] argv) { if (argv.length < 1) { usage("java LoadLibraryTest"); System.exit(1); } for (int i = 0; i < argv.length; i++) { System.loadLibrary(argv[i]); } System.out.println("Succeeded."); } public static void main(String[] argv) { new LoadLibraryTest().start(argv); } private static void usage(String cmd) { System.err.println("usage: " + cmd + " "); } } ----Next_Part(Mon_Feb__3_13:27:32_2003_834)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message