You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mr. Tomcat" <to...@mobile.mp> on 2002/09/16 15:46:50 UTC

More info re: tomcat, 1.4 and jni for Jmagick

I did some more experimentation on this.  It seems that the way Tomcat's
classloader works is somehow preventing JNI from working.  The
LD_LIBRARY_PATH env variable is completely ignored.  No amount of
System.load() or System.loadLibrary() does anything.  The
java.library.path System property looks like this:

/usr/java/j2sdk1.4.0_01/jre/lib/i386/client
/usr/java/j2sdk1.4.0_01/jre/lib/i386
/usr/java/j2sdk1.4.0_01/jre/../lib/i386

but here is the weird part: even if I put the Jmagick and Imagemagick
shared libs in those directories in the JAVA_HOME, I still get a linking
error when I try to use them.

This is all with Tomcat 4.0.4 and JDK 1.4, with Linux.

So, the question is, can we still use JNIs with JDK 1.4, and if so,
how?  If there is no more JNI with JDK 1.4, is this something which is
being worked on, or do we have to move strictly to pure Java, or do we
need to go back to JDK 1.3?

Thanks!


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>