Hi,
I'm trying out Lesson 4 for tinyos-2.x on Mote-PC serial communication. I've
tried compiling the TestSerial program but I've got lots of errors as shown
below. It seems that I have some problems with the Java Path, perhaps in the
environment variables. How should I configure the Java correctly ? I'm using
Windows XP SP2 and cygwin.
Please advice me as I'm still quite new to tinyos and cygwin.
Thank you

Regards,
Ferry


$ make micaz
mkdir -p build/micaz
javac *.java
TestSerial.java:35: package net.tinyos.message does not exist
import net.tinyos.message.*;
^
TestSerial.java:36: package net.tinyos.packet does not exist
import net.tinyos.packet.*;
^
TestSerial.java:37: package net.tinyos.util does not exist
import net.tinyos.util.*;
^
TestSerial.java:39: cannot find symbol
symbol: class MessageListener
public class TestSerial implements MessageListener {
                                   ^
TestSerial.java:41: cannot find symbol
symbol  : class MoteIF
location: class TestSerial
  private MoteIF moteIF;
          ^
TestSerial.java:43: cannot find symbol
symbol  : class MoteIF
location: class TestSerial
  public TestSerial(MoteIF moteIF) {
                    ^
TestSerial.java:68: cannot find symbol
symbol  : class Message
location: class TestSerial
  public void messageReceived(int to, Message message) {
                                      ^
TestSerialMsg.java:7: package net.tinyos.message does not exist
public class TestSerialMsg extends net.tinyos.message.Message {
                                                     ^
TestSerialMsg.java:67: package net.tinyos.message does not exist
    public TestSerialMsg(net.tinyos.message.Message msg, int base_offset) {
                                           ^
TestSerialMsg.java:76: package net.tinyos.message does not exist
    public TestSerialMsg(net.tinyos.message.Message msg, int base_offset,
int da
ta_length) {
                                           ^
TestSerial.java:91: cannot find symbol
symbol  : class PhoenixSource
location: class TestSerial
    PhoenixSource phoenix;
    ^
TestSerial.java:94: cannot find symbol
symbol  : variable PrintStreamMessenger
location: class TestSerial
      phoenix = BuildSource.makePhoenix(PrintStreamMessenger.err);
                                        ^
TestSerial.java:94: cannot find symbol
symbol  : variable BuildSource
location: class TestSerial
      phoenix = BuildSource.makePhoenix(PrintStreamMessenger.err);
                ^
TestSerial.java:97: cannot find symbol
symbol  : variable PrintStreamMessenger
location: class TestSerial
      phoenix = BuildSource.makePhoenix(source, PrintStreamMessenger.err);
                                                ^
TestSerial.java:97: cannot find symbol
symbol  : variable BuildSource
location: class TestSerial
      phoenix = BuildSource.makePhoenix(source, PrintStreamMessenger.err);
                ^
TestSerial.java:100: cannot find symbol
symbol  : class MoteIF
location: class TestSerial
    MoteIF mif = new MoteIF(phoenix);
    ^
TestSerial.java:100: cannot find symbol
symbol  : class MoteIF
location: class TestSerial
    MoteIF mif = new MoteIF(phoenix);
                     ^
TestSerialMsg.java:18: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:24: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:33: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:42: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:51: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:60: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:69: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:78: cannot find symbol
symbol  : method amTypeSet(int)
location: class TestSerialMsg
        amTypeSet(AM_TYPE);
        ^
TestSerialMsg.java:134: cannot find symbol
symbol  : method getUIntBEElement(int,int)
location: class TestSerialMsg
        return (int)getUIntBEElement(offsetBits_counter(), 16);
                    ^
TestSerialMsg.java:141: cannot find symbol
symbol  : method setUIntBEElement(int,int,int)
location: class TestSerialMsg
        setUIntBEElement(offsetBits_counter(), 16, value);
        ^
27 errors
make: *** [TestSerial.class] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to