Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java version problem in installing yarp for MATLAB in Ubuntu 16.04 #1297

Closed
neurohari opened this issue Jul 15, 2017 · 1 comment
Closed
Labels
Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl Resolution: Other

Comments

@neurohari
Copy link

neurohari commented Jul 15, 2017

Hi,
My ubuntu 16.04 system has java 1.8 version in it. While I try to install the MATLAB bindings by following the instructions from the webpage, the LoadYarp and YarpImageHelper class files are built. But, when I run the LoadYarp command in matlab by adding the paths to the classpath.txt and also librarypath.txt, I get the following error

Java exception occurred:
java.lang.UnsatisfiedLinkError: /home/hari/yarp/bindings/build/libjyarp.so:
/usr/local/MATLAB/R2017a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not
found (required by /home/hari/yarp/bindings/build/libjyarp.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at LoadYarp.(LoadYarp.java:18)

I could not work around the issue. Most probably, the problem is due to the different java version that the yarp plugins need, but i'm not sure.

Thank you very much.

@traversaro
Copy link
Member

Hi @hteja , I don't think this error is Java-specific.
See robotology-legacy/codyco-superbuild#141 for a similar issue.

@drdanz drdanz added the Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl label Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl Resolution: Other
Projects
None yet
Development

No branches or pull requests

3 participants