![Rosanswers logo](https://i.sstatic.net/yuGTR.png)

This appears to be caused by a bug in the JDK: http://bugs.sun.com/view_bug.do?bug_id=6724345

I've pushed a workaround for this problem. Please update your checkout of rosjava and try again.


---

Originally posted by [damonkohler](https://answers.ros.org/users/653/damonkohler/) with karma: 3838 on 2012-04-23


This answer was **ACCEPTED** on the original site

Post score: 1

---

### Original comments

**Comment by [LucaGhera](https://answers.ros.org/users/871/lucaghera/) on 2012-04-24**:\
It still fails for me with a new error: * What went wrong: Execution failed for task ':rosjava_messages:generateSources'. > Command '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' finished with (non-zero) exit value 1.

**Comment by [damonkohler](https://answers.ros.org/users/653/damonkohler/) on 2012-04-25**:\
Please run gradlew with --info or --stacktrace and open a new question.

**Comment by [ira](https://answers.ros.org/users/1953/ira/) on 2012-04-26**:\
Thanks, it is successfully built now.

**Comment by [Yeison Rodriguez](https://answers.ros.org/users/4057/yeison-rodriguez/) on 2013-03-24**:\
What was the resolution to this problem?  I'm having the new issue listed here.