Reputation:
According to the image from here
both libraries work according to the same principle. But I believe that there is a difference between them. What is this difference?
Upvotes: 14
Views: 7499
Reputation: 9816
The presentation you linked gave part of the answer already - so just continue reading. E.g. on slide 26 and ff:
Why Not JNA?
Upvotes: 2
Reputation: 3002
JNA uses reflection to call native methods.
JNR generates bytecode in runtime only once therefore JNR works faster then JNA. See example of code generating here
Upvotes: 14