Hello,
I was following the tutorial in rosjava_core, all went smoothly untill I tried to excute the example in rosjava_tutorial_pubsub, in fact, it said in excuting nodes to do
roscore & ./build/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker & ./build/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Listener
First, ./rosjava_tutorial_pubsub dosen't exist in this directory but in build/scripts/rosjava_tutorial_pubsub. Second, when trying
./build/scripts/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker
I got this Error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/ros/RosRun Caused by: java.lang.ClassNotFoundException: org.ros.RosRun at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.ros.RosRun. Program will exit.
Anyone got this tutorial to work, since gradle ?
Thanks for help,
Originally posted by Anas on ROS Answers with karma: 126 on 2012-05-15
Post score: 1
Original comments
Comment by Markus Eich on 2012-05-16:
The same issue here. By the way it seems that only rosjava_tutorial_pubsub is build, not the tutorial_services.
Comment by Gaëtan on 2012-05-16:
same problem too ...