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

What is my rosjava setup missing?

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

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
0

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

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

Question Tools

Stats

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

Seen: 169 times

Last updated: Aug 24 '12