You can use JNI with servlets, but you can't put the JNI classes or DLL's in
the /servlets directory. That directory is controlled by a custom class
loader that does not understand JNI.
(*Chris*)
----- Original Message -----
From: FOLEY Mark (EDS) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 1999 8:10 PM
Subject: Servlets and JNI - direction required!
> Hi,
>
> Could somebody please tell me what the story is concerning Servlets and
> JNI?
> Our project DEPENDS on being able to call 3rd party functions in DLLs,
> but so far I have not been able to do so.
>
> I am running IIS 4.0 on Win NT 4.0, SP4 with JDK 1.1.7a, JSDK 2.0 and
> JRun 2.3.
> I have also tried this using ServletExpress 2.02, JDK 1.2 and JSDK 2.0.
>
> For a start I am trying to call a bog standard DLL with a single
> function
> returning a string - the HelloWorldServlet.java servlet from Sun.
>
> I have tried all the suggestions I've gleaned from various FAQs and
> mailing
> lists, including putting the DLL in the WINNT/SYSTEM32 directory, and
> creating a helper class placed outside the /servlets/ directory, but in
> the classpath. All to no avail so far I'm afraid.
>
> Thanks for any help,
> Mark Foley
> EDS (Australia)
> +61-2-62756494
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> 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