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

Error while building rosjava_core (gradle wrapper)

asked 2012-10-22 05:03:30 -0500

safzam gravatar image

updated 2012-10-23 00:22:28 -0500

KruseT gravatar image

Hi all, I am trying to install rosjava_core on fuerte (ubuntu 12.04) using tutorial http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html . I have followed the "Installing rosjava_core" sections. Now I am trying "building rosjava_core" and executing first step given "./gradlew install" . It creates a zip file gradle-1.0-milestone-9-bin.zip (which I can see) but then I get error:

Unzipping /home/safdar/.gradle/wrapper/dists/gradle-1.0-milestone9-bin/7ilkmgo2rn79vvfvd51rqf17ks/gradle-1.0-milestone-9-bin.zip to /home/safdar/.gradle/wrapper/dists/gradle-1.0-milestone-9-bin/7ilkmgo2rn79vvfvd51rqf17ks
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.zip.ZipFile.<init>(ZipFile.java:148)
at org.gradle.wrapper.Install.unzip(Install.java:148)
at org.gradle.wrapper.Install.createDist(Install.java:65)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:47)

Any body who already has had such error? or how can I proceed further now? thanks in advance

edit retag flag offensive close merge delete

Comments

thanks.Now it proceeds but I get following error on ./gradlew test: Test org.ros.time.NtpTimeProviderTest FAILED 129 tests completed, 1 failure

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':rosjava:test'. Do I miss something?
safzam gravatar image safzam  ( 2012-10-23 01:29:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-10-23 00:23:17 -0500

KruseT gravatar image

It seems the zip download failed, delete the zip file and try again.

edit flag offensive delete link more

Comments

Hi Kruse! thanks,its installed. Now if I execute ../gradlew installApp it builds successfully but I dont see any bin directory because I dont get Talker running if I execute ./build/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker Any clue to run Talker?

safzam gravatar image safzam  ( 2012-10-23 02:17:02 -0500 )edit

Question Tools

Stats

Asked: 2012-10-22 05:03:30 -0500

Seen: 1,255 times

Last updated: Oct 23 '12