Ken Williams wrote:
> You might get better concurrency out of your server by switching to JNI
> too, since they wouldn't have to share the same JVM.
Ok, you've convinced me :)
But I've run into a little snag when trying to get this to work. It
seems to build the JNI extension just fine (all tests pass when running
under JNI too). And I get this message in during the build:
You will also need to add the following directories
to your LD_LIBRARY_PATH environment variable:
/usr/java/jre/lib/i386/native_threads
/usr/java/jre/lib/i386
/usr/java/jre/lib/i386/client
So I do:
export \
LD_LIBRARY_PATH=/usr/java/jre/lib/i386/native_threads:/usr/java/jre/lib/i386:/usr/java/jre/lib/i386/client
Then when I try to start my application I get this:
Error occurred during initialization of VM
Unable to load native library: libverify.so: cannot open shared object
file: No such file or directory
Now I know that the file is there:
]# ls /usr/java/jre/lib/i386 | grep libverify
libverify.so
I also tried setting this in my startup.pl
BEGIN {
$ENV{LD_LIBRARY_PATH} =
"/usr/java/jre/lib/i386/native_threads:/usr/java/jre/lib/i386:/usr/java/jre/lib/i386/client";
warn $ENV{LD_LIBRARY_PATH};
};
And it does warn before the VM error, so it should be set right?
Am I missing something?
--
Michael Peters
Developer
Plus Three, LP