u can create a new DLL including jni.h, its functions would call to
no-sources-DLL functions (like a wrapper), thus u could access the DLL from
Java...
Hope it helps...

-----Mensaje original-----
De: Kai Hackemesser [mailto:[EMAIL PROTECTED]]
Enviado el: martes 6 de marzo de 2001 13:43
Para: [EMAIL PROTECTED]
Asunto: Re: can I use DLL on Windows in JSP


>>> I 'm very new user of JSP. I 've a problem here, I 've many DLL(restore
>>> in  windows\system32\) files that I was use it like ASP service object.
Now,
>>> I very interrest in JSP and wanna know can I use it like past?
>>
>> You can't. JSP is Java (!) Server Pages. You can access every Java class
in
>> your system's classpath, but you can't access anything what you can't
access
>> >from Java classes themself. As far as I know there is no possibility to
>> access DLLs from Java classes.
>
> U can access DLLs from Java through JNI, have a look to SUN docs...

I've checked that. The documentation says:
<cite>
The JNI allows Java code that runs within a Java Virtual Machine (VM) to
operate with applications and libraries written in other languages, such as
C, C++, and assembly. In addition, the Invocation API allows you to embed
the Java Virtual Machine into your native applications.
</cite>

So it is correct, you can use _some_ of the DLLs, if written in C++. But
after checking the tutorial it looks like you have to compile this DLLs with
the header include:
#include <jni.h>

 If you can't compile them because you haven't the sources, it won't work, I
assume.

ciao!
Kai

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to