W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 2000

Fwd: Re: servlet to C /C++ communication using JNI-UnSatisfiedlinkError

From: Michael S. Zick <mszick@altavista.net>
Date: Thu, 21 Dec 2000 09:27:20 -0500 (EST)
To: www-jigsaw@w3.org
Message-Id: <00122108264501.00434@wolf01.localdomain>
Happy Holiday's

In case this information is useful to somebody else...


----------  Forwarded Message  ----------
Subject: Re: servlet to C /C++ communication using JNI-UnSatisfiedlinkError
Date: Thu, 21 Dec 2000 07:58:08 -0600
From: Michael S. Zick <mszick@altavista.net>

Dear Sudhakar,
I have never tried a configuration like yours, but...

The first thing that comes to mind is, under Solaris 5.7,
your external C/C++ file is a dynamic library.

What you describe sounds as if, from with-in the running
JVM environment, either the JVM can't find the dynamic
library directory, the dynamic library loader, or the external
library (perhaps it really isn't in the library directory).

Perhaps you need the LD_LIBRARY environment variable set 
(or whatever it is called under Sun 5.7).
Perhaps your dynamic library needs to be somewhere else, such
as one of the dynamic library locations the VM already knows about.

Whatever, I have a small JAVA class that will report on the JVM's
idea of the execution environment (the servlet's execution environment).
You can grab a copy from the link below, or I can e-mail you a copy.



On Thu, 21 Dec 2000, Sudhakar Adini wrote:
> Hi ,
> I am developing using servlets,JNI.My servlet have to
> communicate with C/C++ code using JNI .But I am
> getting "UnSatisfiedLinkError " while communicating
> with C code using JNI.I am able to communicate with C
> code using JNI as standalone application , but I am 
> getting "UnSatisfiedlinkError" while using servlets.
> I have used the following software while testing that
> application,but i didn't include those files here.
> i)Java - jdk2.1 
> ii)For servlets - jsdk2.1
> ii)Browser - Netscape4.72
> iv)OS - Sun solaris 5.7
Received on Thursday, 21 December 2000 09:31:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:37 UTC