Load a dll library on Java
Posted
by
crimson_king
on Stack Overflow
See other posts from Stack Overflow
or by crimson_king
Published on 2011-11-14T01:44:37Z
Indexed on
2011/11/14
1:51 UTC
Read the original article
Hit count: 115
I need to load a library written in C on java. I have only dlls and header files. Since I didn't understand how to translate pointers or other derivated types from JNI documentation I tried to use an automating tool for this, gluegen and SWIG, but I couldn't manage on how to use them.
I tried to create an interface file for SWIG but it only gives errors. Is there an example on how to load a dll to a java program using ANY tool that works and can generate translated C function and types from .h files ?
© Stack Overflow or respective owner