The error you are getting indicates a classpath problem. Try echo $CLASSPATH on a command line - you should get some output. If you get nothing back, your CLASSPATH setting is incorrect (read more if you want here http://www.kevinboone.com/classpath.html - general about Java classpath, not TinyOS).
Also try 'make tinyos.jar' in /opt/tinyos-2.x/support/sdk/java Good luck --a On Tue, May 12, 2009 at 10:04 AM, shermeen adnan <[email protected]> wrote: > hi > > anybody plzzz help me out i want to define topology but when i do so > according to TOSSIM lesson i get the following error > > i read TOSSIM lesson 11 and from there i used a sample configuration > file named it topologyfile contents written below > > PATH_LOSS_EXPONENT = 3.3; > SHADOWING_STANDARD_DEVIATION = 5.5; > D0 = 1.0; > PL_D0 = 52.1; > > NOISE_FLOOR = -106.0; > S11 = 3.7; > S12 = -3.3; > S21 = -3.3; > S22 = 6.0; > WHITE_GAUSSIAN_NOISE = 4; > > TOPOLOGY = 4; > TOPOLOGY_FILE = chainTopo; > > then i followed the instructions and compiled LinkLayerModel > but when i ran > > java LinkLayerModel topologyfile > > i got below mentioned error why am i having so please anyone help > > Exception in thread "main" java.lang.NoClassDefFoundError: LinkLayerModel > (wrong > name: net/tinyos/sim/LinkLayerModel) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > _______________________________________________ > 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
