nsutgio
nsutgio

Reputation: 240

Can I used a dll file in JAVA?

is there a way that functions in a dll file can be called and used in java? I've been searching for a better way to do it and most of the times it pointed me out to using JNI. But my problem with that is, it will be using c++. I'm wondering if there's still another way to do it. Thanks!

Upvotes: 1

Views: 240

Answers (1)

Daniel
Daniel

Reputation: 11044

The JNI is how it's done. However, you can speed things up by using a generator tool like:

You can also check out Java's Native Access libraries:

Upvotes: 5

Related Questions