ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

What is my rosjava setup missing?

asked 2012-08-15 09:18:43 -0600

I have been working through the Pharos Lab's rosjava tutorial, which is located here

Here is my build.gradle file contents:

apply plugin: 'java'
apply plugin: 'application'
mainClassName = 'edu.ycp.RobotMover'
sourceCompatibility = 1.6
targetCompatibility = 1.6
version = '0.0.0-SNAPSHOT'
group = 'ros.my_stack'

When I run gradle installApp, I don't get any errors. However, if I try to run my application from the command line with:

./build/install/robot_mover_java/bin/robot_mover_java edu.ycp.RobotMover

I get a NoClassDefFoundError.

Did I forget a step in the process? Does the build.gradle file need something else? I am calling robot_mover_java from within the ROS package that I created. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-24 22:57:12 -0600

damonkohler gravatar image

That tutorial appears to be rather out of date. I suggest you start with the tutorials in the rosjava documentation.

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


Asked: 2012-08-15 09:18:43 -0600

Seen: 138 times

Last updated: Aug 24 '12