This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Using JNI dll from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Using JNI dll from Java" Watch "Using JNI dll from Java" New topic
Author

Using JNI dll from Java

Roman Reichel
Greenhorn

Joined: May 05, 2008
Posts: 1
Hello,
I don't know if anyone asked before (it's hard to find good words for the search query), but here is my situation.
I've got a third-party library in the form of a windows dll, which uses the Invocation API part of JNI (as far as I understand it) to wrap the internal java code. With it comes a .h file which has all the needed definitions to use the dll from C.
However, I want to use those functions from Java (Eclipse plugin).
So, is there a way to "bypass" the "double-wrapping" (My Java Code -> JNI -> C Wrapper -> DLL -> JNI -> Third-Party Java Code) and access the Java inside the dll?

BTW, to make it even more complex, the external Java code itself uses native dll functions via JNI, so it's actually three times JNI...

Thanks,
Roman
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using JNI dll from Java
 
Similar Threads
DLL FIle
Calling a generic DLL
using ocx in java (JNI)
calling ocx methods in C
Accessing a windows dll from java, JNI ?