Re: [jfli-users] RE: Sun SDK problems on Linux
Status: Beta
Brought to you by:
rhickey
From: Edi W. <ed...@ag...> - 2004-07-13 09:14:07
|
On Tue, 13 Jul 2004 10:56:35 +0200 (CEST), Andras Simon <as...@ma...> wrote: > Taking a clue from Rich's IBM JDK instructions, I finally managed to > start jfli with Sun's JDK. Seems like the magic incantation is > > (create-jvm > "-verbose:jni" > "-Xbootclasspath:/usr/local/java/j2sdk1.5.0/jre/lib/rt.jar" ;;!!!!!!!!!!!!!!!!!!! > "-Djava.library.path=/usr/local/java/j2sdk1.5.0/jre/lib/i386:/usr/local/java/j2sdk1.5.0/jre/lib/i386/client" > "-Djava.class.path=/home/simon/lisp_packages/jfli/jfli.jar") Zounds! I stumbled across the -Xbootclasspath option in the manpage last night when I was playing around with jfli but forgot to check it. > Note that this is JDK 1.5, but hopefully that's not crucial. Looks like it is crucial... :( edi@bird:/tmp/jfli$ echo $LD_LIBRARY_PATH /usr/local/lib/j2sdk1.4.2_04/jre/lib/i386:/usr/local/lib/j2sdk1.4.2_04/jre/lib/i386/client edi@bird:/tmp/jfli$ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) edi@bird:/tmp/jfli$ lw LispWorks(R): The Common Lisp Programming Environment Copyright (C) 1987-2003 Xanalys LLC. All rights reserved. Version 4.3.7 Saved by root as lw-console, at 07 Jul 2004 3:31 User edi on bird.agharta.de ; Loading text file /usr/lib/lispworks43/lib/4-3-0-0/config/siteinit.lisp ; Loading text file /usr/lib/lispworks43/lib/4-3-0-0/private-patches/load.lisp CL-USER 1 > (load "jni") ; Loading fasl file /tmp/jfli/jni.ufsl #P"/tmp/jfli/jni.ufsl" CL-USER 2 > (load "jfli") ; Loading fasl file /tmp/jfli/jfli.ufsl #P"/tmp/jfli/jfli.ufsl" CL-USER 3 > (use-package :jfli) T CL-USER 4 > (setf *jni-lib-path* "/usr/local/lib/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so") "/usr/local/lib/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so" CL-USER 5 > (create-jvm "-verbose:jni" "-Xbootclasspath:/usr/local/lib/j2sdk1.4.2_04/jre/lib/rt.jar" "-Djava.class.path=/tmp/jfli/jfli.jar" "-Djava.library.path=/usr/local/lib/j2sdk1.4.2_04/jre/lib/i386:/usr/local/lib/j2sdk1.4.2_04/jre/lib/i386/client") [Dynamic-linking native method java.lang.StrictMath.pow ... JNI] [Dynamic-linking native method java.lang.Float.intBitsToFloat ... JNI] [Dynamic-linking native method java.lang.Double.longBitsToDouble ... JNI] [Dynamic-linking native method java.lang.Float.floatToIntBits ... JNI] [Dynamic-linking native method java.lang.Double.doubleToLongBits ... JNI] edi@bird:/tmp/jfli$ Anyway, good detective work! IMHO it's OK if jfli requires the latest Java version. I'll try 1.5 tonight. Thanks, Edi. |