Well, either you DO have problems with your CLASSPATH --
maybe no "." in the path? -- or else TestSerial is not
in the default package. Perhaps it should be
    net.tinyos.{something}.TestSerial?

MS

Shyam Sahu wrote:
> I get the following when I try to run java TestSerial. No probs with 
> classpath.
> 
>  
> *** Successfully built micaz TOSSIM library.
> raj...@rajesh-laptop:/opt/
> tinyos-2.1.0/apps/tests/TestSerial$ java TestSerial
> Exception in thread "main" java.lang.NoClassDefFoundError: TestSerial
> Caused by: java.lang.ClassNotFoundException: TestSerial
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: TestSerial.  Program will exit.
> 
> 
> Plz help me. Thanks for ur time.
> 
> 
> -- 
> Syam
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

Reply via email to