Hi Varun,

It seems your CLASSPATH variable contains
/opt/tinyos-2.1.1/support/sdk/java instead of
/opt/tinyos-2.1.1/support/sdk/java/tinyos.jar

Andris

On Mon, Mar 5, 2012 at 3:47 PM, Varun Agrawal <[email protected]> wrote:
> When I try to make the TestSerial application I get the following output:
>
> ubuntos@ubuntu:~/TinyOS/TestSerial$ make micaz sim
> mkdir -p simbuild/micaz
> javac -target 1.4 -source 1.4 *.java
> /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/MessageListener.java:52:
> error while writing net.tinyos.message.MessageListener:
> /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message/MessageListener.class
> (Permission denied)
> public interface MessageListener {
>        ^
> /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/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;
>                              ^
> 12 errors
> make: *** [TestSerial.class] Error 1
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Earlier I was also getting the SerialPacket symbol not found error but that
> was fixed by downloading and copying the SerialPAcket.java file to the
> required directory.
>
> Any help?
> --
> Yours faithfully,
> Varun Agrawal
>
> B.Tech-III
> Computer Science and Engineering
> National Institute of Technology
> Surat, India.
> About Me
> computerCalledVarun()
>
>
> _______________________________________________
> 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