ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

java error in "rosmake roboearth"

asked 2013-02-12 03:28:33 -0500

pacifica gravatar image

updated 2014-01-28 17:15:12 -0500

ngrennan gravatar image

Hi guys!

I'm on a problem trying to compile roboearth package. I've follow the instruction posted on http://www.ros.org/wiki/roboearth, using rosinstall to download the package. When i try to compile the package with: "rosmake roboearth" i'll got a lot of error, i think that are related to some java problems. Here are the logs:

    /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:80: cannot find symbol
  symbol  : variable JSONUtils
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                    if(JSONUtils.isArray(bdg)) {
                       ^
  /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:82: cannot find symbol
  symbol  : variable JSONArray
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                        Term[] objs = JSONQuery.decodeJSONArray(JSONArray.fromObject(bdg));
                                                                ^
  /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:90: cannot find symbol
  symbol  : variable JSONUtils
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                    } else if(JSONUtils.isObject(bdg)) {
                              ^
  /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:91: cannot find symbol
  symbol  : variable JSONObject
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                        Term obj = JSONQuery.decodeJSONValue(JSONObject.fromObject(bdg));
                                                             ^
  /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:94: cannot find symbol
  symbol  : variable JSONUtils
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                    } else if(JSONUtils.isString(bdg)) {
                              ^
  /home/prisma/fuerte_workspace/stacks/knowrob/json_prolog/src/java/edu/tum/cs/ias/knowrob/json_prolog/PrologBindings.java:97: cannot find symbol
  symbol  : variable JSONUtils
  location: class edu.tum.cs.ias.knowrob.json_prolog.PrologBindings
                    } else if(JSONUtils.isNumber(bdg)) {
                              ^

I'm using Ubuntu 12.04 and ros fuerte release.

Any suggestions??

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-02-12 09:22:04 -0500

moritz gravatar image

Do you have all rosdeps installed? It looks like libjson-java is missing. You can check with 'rosdep check knowrob' given that rosdep is set up correctly.

edit flag offensive delete link more

Comments

Thanks a lot!! rosdep resolved my problems, i miss libjson!

pacifica gravatar image pacifica  ( 2013-02-12 21:58:47 -0500 )edit
1

answered 2013-02-18 03:17:41 -0500

stfn gravatar image

For installation and compiling I figured the following (buggy or undocumented) issues:

sudo apt-get install swi-prolog
sudo apt-get install libjson-java
sudo apt-get install libjson-glib-dev
sudo apt-get install swi-prolog-odbc

CLASSPATH="/usr/lib/jvm/java-6-openjdk/lib:/usr/share/java/*:./lib/:./lib/*:."

find ./ -iname *.java -type f -readable -writable -exec sed -i "s/import de.tum.in.fipm.kipm.gui.visualisation.applets.CommunicationVisApplet;/import edu.tum.cs.ias.knowrob.vis.applets.CommunicationVisApplet;/g" {} \;

The last one replaces wrong includes of this CommunicationVisApplet which came with my roblib source version (r2235 from ipvs.informatik.uni-stuttgart.de/roboearth/repos/public/)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-12 03:28:33 -0500

Seen: 412 times

Last updated: Feb 18 '13