Ask Your Question
0

Error when loading knowrob: java does not exist

asked 2011-10-04 22:09:22 -0500

ahmed gravatar image

updated 2011-10-17 07:16:19 -0500

Wim gravatar image

Hello All, I have some errors when loading the knowrob like this message "ERROR: /opt/ros/diamondback/stacks/knowrob/semweb/prolog/init.pl:22: '$open_shared_object'/3: libjava.so: cannot open shared object file: No such file or directory ERROR: /opt/ros/diamondback/stacks/knowrob/semweb/prolog/init.pl:22: /opt/ros/diamondback/stacks/knowrob/3rdparty/jpl/prolog/jpl.pl:4643: Initialization goal raised exception: *library `java' does not exist (Please add directory holding libjava.so to $LD_LIBRARY_PATH) ERROR: /opt/ros/diamondback/stacks/knowrob/semweb/prolog/init.pl:23: jpl:jpl_set_default_jvm_opts/1: Undefined procedure: jpl:jni_set_default_jvm_opts/2 Warning: /opt/ros/diamondback/stacks/knowrob/semweb/prolog/init.pl:23: Goal (directive) failed: user:jpl_set_default_jvm_opts([-Xmx256M])"* Please if you can help me to solve these errors. Thanks Ahmed

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-10-06 20:11:37 -0500

moritz gravatar image

Hi,

have you installed all system dependencies? (execute the apt-get command generated by 'rosdep satisfy knowrob'). It sounds like Java is not correctly installed on your system. After this, try a 'rosmake --pre-clean knowrob'

If that does not help, some information about your setup would help (Java JDK type and version, OS version, which command produces this error etc).

thanks, Moritz

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-10-04 22:09:22 -0500

Seen: 196 times

Last updated: Oct 17 '11