Check your CLASSPATH and the contents of the java tools or jar. You are trying to run the "Listen" program -- which has nothing to do with SerialForwarder or Oscilloscope -- and the main class is not being found in your path.
MS roberto pagliari wrote: > Hi All, > I'm trying to use the Gui for Oscilloscope application. I get the > following error while running serialforwarder > > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java > net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz > Exception in thread "main" java.lang.NoClassDefFoundError: > net/tinyos/tools/Listen > Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: net.tinyos.tools.Listen. Program will exit. > bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ > > > do you know how to fix this? > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help