java - Implement JNI application to use dll methods without implementation -


i have intention of create java application use methods dll.

for have been reading, in few words, process use jni consists of: declaring native methods in java, generate .h file, , code c or cpp file implementation create dll.

but problem have dll, big library many methods. know interfaces of these methods. not want implement them. want use dll avoid using these methods. understand using dll may improve performance. in case want use because want use code done other party.

am missing anything? possible use jni, or other java interface, use dll methods, skipping coding part?

thank much.

if don't have problem use lib recommend use jna. has more flexible api dll access. @ least preffered use it.

you can find examples here: https://github.com/twall/jna/tree/master/www therefore need have dll loaded , interfaces call java , need.

maybe blog helps you, too: http://jnaexamples.blogspot.de/2012/03/java-native-access-is-easy-way-to.html


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -