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:

Even i have doubt

Posted by ragavan on January 17, 2002 at 2:33 AM

i have one dll written in c++, working fine , i want to make use of that dll from jave , how to do that without chaning anything in my c++ code...

reply
thanks

ragavan T


> 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