[Tinyos-help] tinyos.jar error in the newest TinyOS2.1.1

Wesley Jiang yansuancai at gmail.com
Sun Apr 11 23:36:59 PDT 2010


Hi,
	Please excuse my English.
	I see the news, It says TinyOS 2.1.1 released. So I got the new rpms:
	"tinyos-2.1.1-3.cygwin.noarch.rpm"
	"tinyos-tools-1.4.0-3.cygwin.i386.rpm"
	"tinyos-deputy-1.1-1.cygwin.i386.rpm"
	"nesc-1.3.1-1.cygwin.i386.rpm"

	And using the script to install:

echo "remove TinyOS2.1.0 source tree"
rpm -e --nodeps tinyos-2.1.0-2
echo "remove TinyOS2.1.0 toolchain rpms"
rpm -e --nodeps tinyos-tools-1.3.0-1
rpm -e --nodeps deputy-1.1-1
rpm -e --nodeps nesc-1.3.0-1
echo "Install TinyOS2.1.1 toolchain rpms"
rpm -ivh --ignoreos nesc-1.3.1-1.cygwin.i386.rpm
rpm -ivh --ignoreos tinyos-deputy-1.1-1.cygwin.i386.rpm
rpm -ivh --ignoreos tinyos-tools-1.4.0-3.cygwin.i386.rpm
echo "install TinyOS2.1.1 source tree"
rpm -ivh --ignoreos tinyos-2.1.1-3.cygwin.noarch.rpm

	It's all right, but when i try to using the java tools like this:

$ java net.tinyos.tools.Listen -comm serial at COM6:telos
Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/tools/Listen
Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: net.tinyos.tools.Listen.  Program will exit.

	Then i try to rebuild the tools, using "make tinyos.jar", It's also
says error:

mambo at mambo-desktop:/opt/tinyos-2.1.1/support/sdk/java$ make tinyos.jar
... /opt/tinyos-2.1.1/support/sdk/java
make[1]: Entering directory `/opt/tinyos-2.1.1/support/sdk/java/net'
... /opt/tinyos-2.1.1/support/sdk/java/net
make[2]: Entering directory `/opt/tinyos-2.1.1/support/sdk/java/net/tinyos'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet
ncg -o Serial.java -java-classname=net.tinyos.packet.Serial java
/opt/tinyos-2.1.1/tos/lib/serial/Serial.h Serial.h
failed to create Serial.java
make[3]: *** [Serial.java] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/packet'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message
mig -o SerialPacket.java -java-classname=net.tinyos.message.SerialPacket
java /opt/tinyos-2.1.1/tos/lib/serial/Serial.h serial_packet
-I/opt/tinyos-2.1.1/tos/types
warning: Cannot determine AM type for serial_packet
         (Looking for definition of AM_SERIAL_PACKET)
failed to create SerialPacket.java
make[3]: *** [SerialPacket.java] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/message'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf
javac SerialForwarder.java
SerialForwarder.java:77: error while writing
net.tinyos.sf.SerialForwarder.SFMessenger:
SerialForwarder$SFMessenger.class (Permission denied)
  class SFMessenger implements Messenger {
  ^
/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: /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf/SFWindow.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
10 errors
make[3]: *** [SerialForwarder.class] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sim'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sim
javac LinkLayerModel.java
LinkLayerModel.java:46: error while writing
net.tinyos.sim.InputVariables: InputVariables.class (Permission denied)
class InputVariables {
^
1 error
make[3]: *** [LinkLayerModel.class] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sim'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/comm'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/comm
javac ByteQueue.java
ByteQueue.java:27: error while writing net.tinyos.comm.ByteQueue:
ByteQueue.class (Permission denied)
public class ByteQueue
       ^
1 error
make[3]: *** [ByteQueue.class] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/comm'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/tools'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/tools
mig java  -java-classname=net.tinyos.tools.PrintfMsg
/opt/tinyos-2.1.1/tos/lib/printf/printf.h printf_msg -o PrintfMsg.java
/opt/tinyos-2.1.1/tos/lib/printf/printf.h:54:30: error:
generic_printf.h: No such file or directory
failed to parse message file /opt/tinyos-2.1.1/tos/lib/printf/printf.h
make[3]: *** [PrintfMsg.java] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/tools'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/mviz'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/mviz
javac DataModel.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) {
                                 ^
Note: DataModel.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
make[3]: *** [DataModel.class] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/mviz'
make[3]: Entering directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/util'
... /opt/tinyos-2.1.1/support/sdk/java/net/tinyos/util
javac Crc.java
Crc.java:33: error while writing net.tinyos.util.Crc: Crc.class
(Permission denied)
public class Crc {
       ^
1 error
make[3]: *** [Crc.class] Error 1
make[3]: Leaving directory
`/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/util'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/opt/tinyos-2.1.1/support/sdk/java/net/tinyos'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/opt/tinyos-2.1.1/support/sdk/java/net'
make: *** [subdirs] Error 2

	Someone help me please, thx




More information about the Tinyos-help mailing list