• Post Reply Bookmark Topic Watch Topic
  • New Topic

do we have any methods to used c dll in java except jni

 
balaji phaneedra kuamr kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know any method which helps to integrate java with pure c dll or shared object with out implementing JNI
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out JNA. You will still need to translate the DLL to one or more Java classes, but the bridge between Java and C is now written in Java, not C.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some other libraries are mentioned in http://faq.javaranch.com/java/JavaIntermediateFaq#callingCom, but they use JNI underneath. Why do you want to avoid it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!