Ask Your Question
0

Ant problem when building rosjava

asked 2011-06-06 20:11:54 -0500

Oryonym gravatar image

Hello all,

I following the instructions on the rosjava welcome page http://code.google.com/p/rosjava/wiki... .

Everything goes fine until I try to build rosjava.jar.

At first, the result of the "ant dist" instruction was that it was unable to find the sdk.dir folder, so I decided to hardcode the path of my Android sdk installation. If I write the command "android" in the shell, I can see how the AVD manager starts.

Now, the problem is that the build fails because it's unable to find com.android.ant.SetupTask

See the error trace below:

BUILD FAILED
/myfolder/rosjava/rosjava/build.xml:5: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/build-common.xml:16: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/dependencies.xml:20: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/android/build.xml:6: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/android/library/build.xml:38: The following error occurred while executing this line:
/myfolder/android-sdk-linux_x86/tools/ant/pre_setup.xml:13: taskdef class com.android.ant.SetupTask cannot be found
 using the classloader AntClassLoader[]

Someone asked if I have the anttasks.jar under the /myfolder/android-sdk-linux_x86/tools/lib folder, and yes, I do.

What can be happening?

Thanks in advance!

edit retag flag offensive close merge delete

Comments

what do you mean by 'hardcode the path of my Android sdk installation'? The only setup I did was to add the Android SDK to my path. For the rest, I use the "android update project --path .' to generate the local.properties file.
kwc gravatar image kwc  ( 2011-06-07 04:00:09 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2011-06-07 07:12:19 -0500

damonkohler gravatar image
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-06-06 20:11:54 -0500

Seen: 577 times

Last updated: Jun 07 '11