Hi,
I set the "LIBPATH" and put my library file underneath but it still didn't work.
So you guys are indicating the servlet engine will locate dynamic libraries by the global environment variable "LIBPATH" while being executed??
-----Original Message-----
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Help needed on invoking JNI within Servlet (WebSphere)
On Wed, 21 Nov 2001, Richard Yee wrote:
> It appears that you are running on a Unix/Linux OS. If that is the
> case, you need to set your LD_LIBRARY_PATH environment variable so
> that it includes the directory where libtestar.a is located.
FWIW: He mentions that he's using AIX; on AIX, the relevant variable
is LIBPATH, not LD_LIBRARY_PATH.
> At 10:59 PM 11/21/2001 -0700, you wrote:
> >Hi,
> >
> >I've been trying to run a Servlet (Aix4.3 with IBM WebSphere3.5) calling a
> >JNI C function, but somehow I got an error msg:
> >
> >Root Error-1: /usr/WebSphere/AppServer/bin/libtestar.a: A file or
> >directory in the path name does not exist.
> >
> >java.lang.UnsatisfiedLinkError: /usr/WebSphere/AppServer/bin/libtestar.a:
> >A file or directory in the path name does not exist.
> > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java(Compiled Code)) ....
> >
> >Could anyone please tell me where exactly I should put my Servlet class,
> >JNI class and library file:libtestar.a ??
> >Thanks,
> >
> >Daniel Hsu
> >
