[Tinyos-help] problem compiling the java based oscilloscope application.

Etienne Lachaud e.lachaud at gmail.com
Tue Apr 20 09:22:31 PDT 2010


Hi.
I'm installing the TinyOS environnement. I'm working on Ubuntu 9.10, and I
have a problem when I want to test the java based oscilloscope application.
The compilation detects 21 errors, and of course I can't run it with ./run.
The compilation of the nesC oscilloscope was succesful, the mote is
detected, I managed to install it on the mote... everything is fine except
the java oscilloscope thing.

Here is the compilation report:

root at DellD520:/opt/tinyos-2.1.1/apps/Oscilloscope/java# make
javac *.java
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:84:
cannot find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Message
  private SerialPacket serialPacket;
          ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:676:
cannot find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Message
  public SerialPacket getSerialPacket() {
         ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Message.java:684:
cannot find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Message
  protected void setSerialPacket(SerialPacket mySerialPacket) {
                                 ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Sender.java:86: cannot
find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Sender
    SerialPacket packet =
    ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Sender.java:87: cannot
find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Sender
        new SerialPacket(SerialPacket.offset_data(0) + data.length);
            ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Sender.java:87: cannot
find symbol
symbol  : variable SerialPacket
location: class net.tinyos.message.Sender
        new SerialPacket(SerialPacket.offset_data(0) + data.length);
                         ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Sender.java:87:
operator + cannot be applied to SerialPacket.offset_data,int
        new SerialPacket(SerialPacket.offset_data(0) + data.length);
                                                 ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Sender.java:95: cannot
find symbol
symbol  : variable Serial
location: class net.tinyos.message.Sender
    fullPacket[0] = Serial.TOS_SERIAL_ACTIVE_MESSAGE_ID;
                    ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Receiver.java:166:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.message.Receiver
    if (packet[0] != Serial.TOS_SERIAL_ACTIVE_MESSAGE_ID)
                     ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Receiver.java:169:
cannot find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Receiver
    SerialPacket msg = new SerialPacket(packet, 1);
    ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Receiver.java:169:
cannot find symbol
symbol  : class SerialPacket
location: class net.tinyos.message.Receiver
    SerialPacket msg = new SerialPacket(packet, 1);
                           ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/Receiver.java:190:
cannot find symbol
symbol  : variable SerialPacket
location: class net.tinyos.message.Receiver
        received.dataSet(msg.dataGet(), SerialPacket.offset_data(0) +
msg.baseOffset(),
                                        ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:85:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int SYNC_BYTE = Serial.HDLC_FLAG_BYTE;
                               ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:87:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int ESCAPE_BYTE = Serial.HDLC_CTLESC_BYTE;
                                 ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:93:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int P_ACK = Serial.SERIAL_PROTO_ACK;
                           ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:95:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int P_PACKET_ACK = Serial.SERIAL_PROTO_PACKET_ACK;
                                  ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:97:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int P_PACKET_NO_ACK = Serial.SERIAL_PROTO_PACKET_NOACK;
                                     ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:99:
cannot find symbol
symbol  : variable Serial
location: class net.tinyos.packet.Packetizer
  final static int P_UNKNOWN = Serial.SERIAL_PROTO_PACKET_UNKNOWN;
                               ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:334:
possible loss of precision
found   : int
required: byte
      escaped[escapePtr++] = SYNC_BYTE;
                             ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:345:
possible loss of precision
found   : int
required: byte
        escaped[escapePtr++] = ESCAPE_BYTE;
                               ^
/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet/Packetizer.java:353:
possible loss of precision
found   : int
required: byte
      escaped[escapePtr++] = SYNC_BYTE;
                             ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
21 errors
make: *** [Oscilloscope.class] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100420/eaacb336/attachment.htm 


More information about the Tinyos-help mailing list