The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Calling a DLL from Java

Posted by tfejes on January 15, 2001 at 8:34 AM

You will have to use "Java Native Interface" (JNI).
I suggest "The Java Native Interface" by Sheng Liang.
If it is a simple library, it will be easier to rewrite
it in Java than use JNI.

> Hai,

> I have a doubt here, that how to call a DLL from a Java application. DLL is a already written one. That is working fine in C applications. Now i want to make use of that DLL in my Java applications. How can i call that same.
> I have seen in some book that they all say to create a new c library and use loadlibrary after that. They didn't say anything about calling an existing DLL.
> So can you clear this doubt.

> Thank You

> Regards
> Raj M.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us