Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#73 liblibjyarp.so instead of libjyarp.so

open
nobody
None
5
2010-08-03
2010-08-03
Klaus
No

Greetings,
I am trying to use Yarp with Java to control the iCub simulator but I got stuck at a certain point.
I have compiled yarp with CREATE_SHARED_LIBRARY on in cmake and would like to run an example, such as the one in: \example\swig\src\Example3.java
After following the instructions at /opt/yarp/example/swig/README I ended up with liblibjyarp.so instead of libjyarp.so
After using ant to produce the jars I try to run one of the examples and this is what I get:
-------------------
root@tenorio:/opt/yarp/example/swig# java -jar bin/example1.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jyarp in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at Example1.main(Unknown Source)
root@tenorio:/opt/yarp/example/swig#
-------------------

What should I do to make it work? Any ideas?

Thank you all in advance!

Discussion