This error happens because you are not running the command in the directory where is the TestSerial.class.
2009/10/1 Zé Pedro Espogeira <[email protected]> > Hi to all, > > > > i added to bashrc file the lines to CLASSPATH and MOTECOM > export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar ($TOSROOT is tinyos > root) > export MOTECOM=serial@/dev/ttyUSB0:115200 > > but im still getting this error when running TestSerial > > z...@ze-laptop:~$ java TestSerial > Exception in thread "main" java.lang.NoClassDefFoundError: TestSerial > Caused by: java.lang.ClassNotFoundException: TestSerial > 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:323) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:268) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) > Could not find the main class: TestSerial. Program will exit. > > anyone have any idea why it shows this error? > > do you think it has to do with the JDK installement? > > Thank you > Ze > > ------------------------------ > Quer uma internet mais segura? Baixe agora o novo Internet Explorer 8. É > grátis!<http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8> > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
