Hey Abhishek,
Most likely your classpath is not defined properly. The classpath is
usually defined in the script in ${TOSROOT}/tinyos.sh. See for instance
step 4 in the debian installation instructions at:
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Two-step_install_on_your_host_OS_with_Debian_packages
Cheers,
Urs
Abhishek Phadnis wrote:
> hey everyone
>
> i'm trying to invoke serialforwarder using the following command
>
>
> java net.tinyos.sf.SerialForwarder
>
> and these are the errors that follow
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/tinyos/sf/SerialForwarder
> Caused by: java.lang.ClassNotFoundException: net.tinyos.sf.SerialForwarder
> 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: net.tinyos.sf.SerialForwarder. Program will
> exit
>
>
> could someone please explain whats missing cos i dont have a clue...
>
> thanks
>
> abhishek
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help