Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java + dll

  Asked By: Annie    Date: Jun 09    Category: Java    Views: 573
  

I have a problem:

I have to call a method in a dll and take it´s return. Anyone knows
how do I do it? I don´t have the source of the dll file.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Kanchan Ap     Answered On: Jun 09

Take a look at JNI tutorial on java  sun site.

 
Answer #2    Answered By: Haya Yoshida     Answered On: Jun 09

You may be venturing into a problem  - if you are trying to call  a .dll from Java
you are moving out of the JRE which destroys Java's portability. Can you specify
exactly what kind of method  you are calling? There is probably a Java method
layered over the native libraries that can achieve the same effect without
dipping into the native libraries...

 
Answer #3    Answered By: Geneva Morris     Answered On: Jun 09

I have found the solution. the problem  was:

I had to call  one method  from a dll  because I had integrate to my
system with the client's system, written in VB.

The solution I found was to generate another DLL in C++ importing the
JINI libraries. This DLL makes the call to the VB dll and brings the
return value to my class.

 
Didn't find what you were looking for? Find more on Java + dll Or get search suggestion and latest updates.




Tagged: