Hello,
> My code compiled, but when I tried to run it I got an "native code
library (tspiwrapper) failed to load." error. This library is in
libtspiwrapper.so, and I can't seem to add this to my project libraries
in NetBeans. Any suggestion? Thanks.
What you basically have to do is to ensure that the shared library can
be found by your linker. On the command line, one way to do that is to
set the LD_LIBRARY_PATH accordingly. Another option is to specify the
"java.library.path" property (using the "java -D" option).
In an IDE like NetBeans or Eclipse you basically have to do the same
thing: Set the library path to point to the location of the shared
library. Since I have no experience with NetBeans, unfortunately I'm
unable to provide you with a howto. I however recommend to look for some
possibility to set the the library path as described above.
Regards,
Thomas Winkler
|