[Tinyos-help] java compile errors in tinyos-2.x

Ryan Aures raures at gmail.com
Thu Aug 10 07:36:51 PDT 2006


Hello,

I am trying to run Listen in tinyos-2.x on a Windows 2000 machine.  When I
run 'make' in the support/sdk/java directory,
I got a lot of errors, these are just the errors I get from trying to make
the tools directory:

------------------------------------------------------------------------
user at computer /opt/tinyos-2.x/support/sdk/java/net/tinyos/tools
$ make
... /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
make: *** [Listen.class] Error 1
------------------------------------------------------------------------

I get similar "cannot find symbol" errors(more) when making java alone, and
when I try to run java net.tinyos.tools.Listen I get:

$ java net.tinyos.tools.Listen
Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/tools/Listen

Can anyone help with this problem?
Thanks,

Ryan Aures
University of Rochester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060810/8f360260/attachment-0001.html


More information about the Tinyos-help mailing list