What does …java.lang.NoClassDefFoundError: mytoolname (wrong name: net/tinyos/mytoolname/mytoolname) mean?
The way you’ve specified the class on the command line does not match what the class itself thinks it is called. The compiled java class might include a path in its name. For example, the class defined in tools/net/tinyos/oscilloscope/oscilloscope.java has the classname tools/net/tinyos/oscilloscope/oscilloscope. For example, to run the oscilloscope tool, you can cd to tools/java and type java net/tinyos/oscilloscope/oscilloscope .