Date: Mon, 03 Feb 2003 13:27:32 +0900 (JST) From: shudo@computer.org To: java@FreeBSD.ORG Subject: Re: shujit Message-ID: <20030203.132732.596520920.shudo@localhost> In-Reply-To: <Pine.BSF.4.21.0302022005190.263-100000@duron.bschwand.net> References: <Pine.BSF.4.21.0302022005190.263-100000@duron.bschwand.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] From: bruno schwander <bruno@tinkerbox.org> > 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/ [-- Attachment #2 --] 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 + " <name of a shared library>"); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030203.132732.596520920.shudo>
