Hello,
I would like to call a C++ programm out of Java with help of JNI. By the
followed command I created a "shared library":
g++ -shared -o libcalculate.so rechner.cpp
When I create an object from the existing program inside a method of my
class rechner.cpp, and then call the method out of java, a following
error message:
Exception in thread "main" java.lang.Unsat isfiedLinkError :
/home/home12/kahl/six-cvs/six-0.5.2/six/javainterface/libcalculate.so :
/home/home12/kahl/six-cvs/six-0.5.2/six/javainterface/libcalculate.so :
undefined symbol: _ZN9DualBatch13 setConnLimitsEj j
at java.lang.Class Loader$NativeLi brary.load(Nati ve Method)
at java.lang.Class Loader.loadLibr ary0(ClassLoade r.java:1751)
at java.lang.Class Loader.loadLibr ary(ClassLoader .java:1676)
at java.lang.Runti me.loadLibrary0 (Runtime.java:8 22)
at java.lang.Syste m.loadLibrary(S ystem.java:992)
at Calculate.<clin it>(Calculate.j ava:16)
at DerJavaRechner. main(DerJavaRec hner.java:10)
If I do not create such an object, everything is fine.
I already posted my problem in a german group, but did not get an answer
until now.
Thanks for your help.
Ken