build with c++ library [message #276334] |
Sun, 21 November 2004 18:41 |
Eclipse User |
|
|
|
I'm trying to build a Java project that will use the JNI to call methods
from a C++ library. I wrote the C++ code and wrote the make file to
create a library file, let's call it mycpplib.a
I've tried setting the LD_LIBRARY_PATH to the path of mycpplib.a, but i
get a 'does not point to an existing archive' message.
I've tried to define the path in Run -> MyJavaProject -> Arguments -> VM
arguments:
-Djava.library.path=/path/to/mycpplib.a
but i get an UnsatisfiedLinkError in java.library.path.
Its easy enough to link a jar file, but this is different somehow.
What is the problem?
|
|
|
Powered by
FUDForum. Page generated in 0.02959 seconds