> I have hard time to call native method from servlet running on
> servletrunner. My Servlet class will call a class contains native
> method. The same code works find under java.exe but I always got
> java.lang.UnsatisfiedLinkError exception in servlet where I call native
> method. My dll has been loaded and initialized properly when I call
> System.Loadlibary. And I have double-checked the servletrunner runs on
> the same version of JDK which I compiled the servlet and runs
> javah.exe. Any thing I left? Thank you in advance.
Is your servlet in the "servlets/" dir or in the classpath. If the
former, there is a well known bug with JDK 1.1.x where classes loaded by
custom class loaders (which is what fronts the "servlets/" dir don't
play well with native code. Move the servlet out onto your classpath and
see what happens.
.duncan
___________________________________________________________________________
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