Hi,
using ServletExpress and IIS I have put my C DLLs in the Winnt/system32
directory
and specified c:/jclasses as a directory on the classpath, where I put
the helper
classes which use the JNI. (I believe there is a problem using the JNI
directly
from a class in the /servlet/ virtual directory).
When I tried this using JRun, the DLLs were in the same place, but the
helper
classes I put into a directory called classes in the JDK directory (in
this case
c:/jdk1.2/classes). Worked fine.
Hope that helps,
Mark
> -----Original Message-----
> From: Zhubin Salehi
> Sent: Thursday, 13 May 1999 1:52
> To: [EMAIL PROTECTED]
> Subject: Re: JNI call from Servlets
>
> Where is the classes directory? I use JSDK 2.0 as the servlet runner.
> The DLL
> file is in servles directory and I added this directory to the PATH,
> but not
> CLASSPATH.
>
> Jean-Michel Augusto wrote:
>
> > I have no problem using JNI and Servlets. Where have you put
> the
> > .class files? They could not be put on the servlet directory
> (because of
> > the VM loader). They should be on the classes directory.
> >
> > Hope this help you
> >
> > Friendly
> > Jean Michel Augusto
> > [EMAIL PROTECTED]
> >
> > > -----Original Message-----
> > > From: Zhubin Salehi [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 12, 1999 15:49
> > > To: [EMAIL PROTECTED]
> > > Subject: JNI call from Servlets
> > >
> > >
> > > Dear colleagues,
> > >
> > > I've written a few native methods in C and compiled them to a
> > > Win32 DLL
> > > using VC++ 6.0, and called them from a Java application and it
> works
> > > pretty well.
> > >
> > > Now I'm calling them from a Servlet. The JVM loads the DLL
> > > successfully
> > > but I keep getting UnsatisfiedLinkError exception when I try
> > > to call the
> > > methods.
> > >
> > > Do you have any suggestion about what can be wring? I'm using
> > > JDK 1.1.7B
> > > on Windows NT 4.0.
> > >
> > > Thanks,
> > > Zhubin Salehi
> > >
> > > ______________________________________________________________
> > > _____________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and
> > > include in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
> > > http://java.sun.com/products/servlet/externa> l-resources.html
> > >
> > > LISTSERV Help:
> > > http://www.lsoft.com/manuals/user/user.html
> > >
> >
> >
> ______________________________________________________________________
> _____
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ______________________________________________________________________
> _____
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html