Reputation: 86
I have some methods in a Visual Basic 6.0 DLL that I need to access in Java 6.0. How do I do this?
Upvotes: 3
Views: 9484
Reputation: 3530
JNI can be easily used to access any function publicly available in a DLL (managed or unmanaged) so that it can be used in java.
You will need to create your own interface, using Java Native Interface (JNI), and then call the interface functions as you normally do.
Upvotes: 1
Reputation: 114797
The Java Native interface is your friend. But the easier way should be using the Java Native Access library. Here's an answer to a similiar question.
Upvotes: 7