Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using JNI with langiages other than C or C++  RSS feed

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

Does anyone know how to go about interfacing with native code using JNI with langiages other than C or C++. The java tutorial tells me to creat a header file but I think thats only for C stuff.

I want to use the dll assotiated with http://www.ftdichip.com/Documents/ProgramGuides/D2XXPG32.pdf
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use a DLL, you have to write your own DLL to provide the "glue"; you can write it in any language that can use C calling conventions. Was there a reason you didn't want to use C, though, because that's going to be the easiest.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't realise that I had to create my own dll. I see, C makes the dll for you.C will be ok then. I'm finding that this JNI stuff has quite a steep learning curve, but I should pay off in the end.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!