Error building rosjava.jar
I'm trying to install rosjava from the official instructions: http://code.google.com/p/rosjava/wiki/Welcome
but I'm stuck at the step where I have to build rosjava.jar. When I type ant dist
, I get this:
BUILD FAILED
/opt/ros/javagooglecode/rosjava/build.xml:5: The following error occurred while executing this line:
/opt/ros/javagooglecode/rosjava/build-common.xml:16: The following error occurred while executing this line:
/opt/ros/javagooglecode/rosjava/dependencies.xml:20: The following error occurred while executing this line:
/opt/ros/javagooglecode/rosjava/android/build.xml:6: The following error occurred while executing this line:
/opt/ros/javagooglecode/rosjava/android/library/build.xml:37: Cannot find ${sdk.dir}/tools/ant/pre_setup.xml imported from /opt/ros/javagooglecode/rosjava/android/library/build.xml
I followed the solution presented here: http://stackoverflow.com/questions/6159909/ant-cannot-firn-pre-setup-xml-for-an-android-project, but it did not change anything.
Note than when I type android, it is not a recognized command, so I have to type the full path the to Android installation folder on my desktop. I don't know if this could be a problem.