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