• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JNI dll from Java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic