Please check you classpath and make sure that
tinyos-2.x/support/sdk/java/tinyos.jar and current directory is in
your classpath. For example, on my machine

echo $CLASSPATH

returns the following

/opt/tinyos-2.x/support/sdk/java/tinyos.jar:.

On Sun, Aug 31, 2008 at 12:54 AM, maryam ebraheem <[EMAIL PROTECTED]> wrote:
> hi
>
> I am trying to applying the tutorials but I have some problem
>
> when I type
>
> java net.tinyos.tools.Listen -comm [EMAIL PROTECTED]:telos
> I got
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/tinyos/tools/List
> en
> note that my listen file in the following path:
>
> C:\cygwin\opt\tinyos-2.x\support\sdk\java\net\tinyos\tools
>
> but even when I change the path in the comand the same problem still there
>
>
> $ java TestSerial
> also this give an exception
>
>
>
> note that when I compile the listen file I got
>
> [EMAIL PROTECTED] /opt/tinyos-2.x/support/sdk/java/net/tinyos/tools
> $ javac Listen.java
> Listen.java:36: package net.tinyos.packet does not exist
> import net.tinyos.packet.*;
> ^
> Listen.java:37: package net.tinyos.util does not exist
> import net.tinyos.util.*;
> ^
> Listen.java:38: package net.tinyos.message does not exist
> import net.tinyos.message.*;
> ^
> Listen.java:43: cannot find symbol
> symbol  : class PacketSource
> location: class net.tinyos.tools.Listen
>         PacketSource reader;
>         ^
> Listen.java:53: cannot find symbol
> symbol  : variable
>  BuildSource
> location: class
>  net.tinyos.tools.Listen
>           reader = BuildSource.makePacketSource();
>                    ^
> Listen.java:56: cannot find symbol
> symbol  : variable BuildSource
> location: class net.tinyos.tools.Listen
>           reader = BuildSource.makePacketSource(source);
>                    ^
> Listen.java:64: cannot find symbol
> symbol  : variable PrintStreamMessenger
> location: class net.tinyos.tools.Listen
>           reader.open(PrintStreamMessenger.err);
>                       ^
> Listen.java:67: cannot find
>  symbol
> symbol  : variable Dump
> location: class net.tinyos.tools.Listen
>             Dump.printPacket(System.out, packet);
>             ^
> 8 errors
>
> my classpath is
>
> C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.;
>
>
>
> so I need your help
>
> I really need to finish those tutorial at these 2 days
>
>
>
> _______________________________________________
> 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