[Tinyos-help] Surge_Reliable and xbow Surge java application problems

Amra Pasic Amra.Pasic at dcu.ie
Wed Sep 7 04:18:09 PDT 2005


Hi,

I compiled Surge_Reliable with no problems and I uploded the program onto the motes. Then I tried to run surge java application, but it opened the one from the non-contrib folder. I figured out that probably the path is not set properly. I ran MakeSurgeJar.sh script and got the following error messages:


$ ./MakeSurgeJar.sh
... /opt/tinyos-1.x/contrib/xbow/tools/java/net/tinyos/surge
cd messages; make
make[1]: Entering directory `/opt/tinyos-1.x/contrib/xbow/tools/java/net/tinyos/
surge/messages'
... /opt/tinyos-1.x/contrib/xbow/tools/java/net/tinyos/surge/messages
mig java -java-classname=net.tinyos.surge.messages.DebugPacket  ../../../../../.
./../../contrib/xbow/tos/lib/ReliableRoute/MultiHop.h DebugPacket -o DebugPacket
.java
struct DebugPacket 1 3
  estEntries U 0 8
  estList [0]AS 8 32
  estList.id U 0 16
  estList.hopcount U 16 8
  estList.sendEst U 24 8
  estList AX
mig java -java-classname=net.tinyos.surge.messages.SurgeMsg  ../../../../../../.
./../contrib/xbow/apps/Surge/Surge.h SurgeMsg -o SurgeMsg.java
avr-gcc: C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\Surge\Surge.h: No suc
h file or directory
avr-gcc: warning: `-x nesc' after last input file has no effect
avr-gcc: no input files
failed to parse message file ../../../../../../../../contrib/xbow/apps/Surge/Sur
ge.h
make[1]: *** [SurgeMsg.java] Error 1
make[1]: Leaving directory `/opt/tinyos-1.x/contrib/xbow/tools/java/net/tinyos/s
urge/messages'
make: *** [messages] Error 2
net\tinyos\surge\*.class : no such file or directory
added manifest
net\tinyos\surge\Dialog\*class : no such file or directory
net\tinyos\surge\PacketAnalyzer\*class : no such file or directory
net\tinyos\surge\analysis\*class : no such file or directory
net\tinyos\surge\event\*class : no such file or directory
adding: net/tinyos/surge/images/Splash.jpg(in = 40211) (out= 36047)(deflated 10%
)
adding: net/tinyos/surge/images/base.gif(in = 177905) (out= 177705)(deflated 0%)

net\tinyos\surge\messages\*class : no such file or directory
net\tinyos\surge\stats\*class : no such file or directory
net\tinyos\surge\util\*class : no such file or directory
adding: net/tinyos/packet/AbstractSource.class(in = 2743) (out= 1477)(deflated 4
6%)
adding: net/tinyos/packet/BrokenPacketizer.class(in = 2915) (out= 1568)(deflated
 46%)
adding: net/tinyos/packet/BuildSource.class(in = 7279) (out= 3058)(deflated 57%)

adding: net/tinyos/packet/ByteSource.class(in = 278) (out= 198)(deflated 28%)
adding: net/tinyos/packet/DBReader.class(in = 2897) (out= 1604)(deflated 44%)
adding: net/tinyos/packet/DBSource.class(in = 1452) (out= 831)(deflated 42%)
adding: net/tinyos/packet/DummySource.class(in = 963) (out= 622)(deflated 35%)
adding: net/tinyos/packet/NetworkByteSource.class(in = 878) (out= 499)(deflated
43%)
adding: net/tinyos/packet/OldSFSource.class(in = 1118) (out= 602)(deflated 46%)
adding: net/tinyos/packet/PacketListenerIF.class(in = 195) (out= 158)(deflated 1
8%)
adding: net/tinyos/packet/PacketSource.class(in = 398) (out= 262)(deflated 34%)
adding: net/tinyos/packet/Packetizer$Escaper.class(in = 823) (out= 535)(deflated
 34%)
adding: net/tinyos/packet/Packetizer.class(in = 4480) (out= 2634)(deflated 41%)
adding: net/tinyos/packet/ParseArgs.class(in = 744) (out= 488)(deflated 34%)
adding: net/tinyos/packet/PhoenixError.class(in = 166) (out= 144)(deflated 13%)
adding: net/tinyos/packet/PhoenixSource$1.class(in = 1115) (out= 620)(deflated 4
4%)
adding: net/tinyos/packet/PhoenixSource.class(in = 3720) (out= 1873)(deflated 49
%)
adding: net/tinyos/packet/Platform$PlatformSpec.class(in = 1029) (out= 588)(defl
ated 42%)
adding: net/tinyos/packet/Platform.class(in = 5039) (out= 2668)(deflated 47%)
adding: net/tinyos/packet/SFProtocol.class(in = 1964) (out= 1160)(deflated 40%)
adding: net/tinyos/packet/SFSource.class(in = 1126) (out= 611)(deflated 45%)
adding: net/tinyos/packet/SerialByteSource.class(in = 3166) (out= 1698)(deflated
 46%)
adding: net/tinyos/packet/StreamByteSource.class(in = 1263) (out= 729)(deflated
42%)
adding: net/tinyos/packet/StreamSource.class(in = 1112) (out= 648)(deflated 41%)

adding: net/tinyos/message/BaseTOSMsg.class(in = 7894) (out= 2932)(deflated 62%)

adding: net/tinyos/message/ByteArray.class(in = 232) (out= 196)(deflated 15%)
adding: net/tinyos/message/Dump.class(in = 1222) (out= 673)(deflated 44%)
adding: net/tinyos/message/Message.class(in = 4631) (out= 2476)(deflated 46%)
adding: net/tinyos/message/MessageFactory.class(in = 4366) (out= 1929)(deflated
55%)
adding: net/tinyos/message/MessageField.class(in = 5637) (out= 2850)(deflated 49
%)
adding: net/tinyos/message/MessageInjector$ButtonPanel.class(in = 1909) (out= 92
1)(deflated 51%)
adding: net/tinyos/message/MessageInjector$InjectListener.class(in = 2158) (out=
 1104)(deflated 48%)
adding: net/tinyos/message/MessageInjector$MainMenuBar.class(in = 1553) (out= 79
8)(deflated 48%)
adding: net/tinyos/message/MessageInjector.class(in = 3941) (out= 2005)(deflated
 49%)
adding: net/tinyos/message/MessageListener.class(in = 191) (out= 141)(deflated 2
6%)
adding: net/tinyos/message/MessagePanel.class(in = 4615) (out= 2346)(deflated 49
%)
adding: net/tinyos/message/MessageSelection.class(in = 4072) (out= 2326)(deflate
d 42%)
adding: net/tinyos/message/MessageSelectionPanel.class(in = 2634) (out= 1379)(de
flated 47%)
adding: net/tinyos/message/MoteIF.class(in = 3891) (out= 1848)(deflated 52%)
adding: net/tinyos/message/Receiver$msgTemplate.class(in = 929) (out= 517)(defla
ted 44%)
adding: net/tinyos/message/Receiver.class(in = 4502) (out= 2240)(deflated 50%)
adding: net/tinyos/message/Sender.class(in = 2701) (out= 1505)(deflated 44%)
adding: net/tinyos/message/TOSMsg.class(in = 1526) (out= 692)(deflated 54%)
adding: net/tinyos/tools/BcastInject.class(in = 5092) (out= 2796)(deflated 45%)
adding: net/tinyos/tools/Deluge$DelugeImg.class(in = 3723) (out= 2112)(deflated
43%)
adding: net/tinyos/tools/Deluge.class(in = 12808) (out= 6729)(deflated 47%)
adding: net/tinyos/tools/DelugeAdvMsg.class(in = 10048) (out= 3274)(deflated 67%
)
adding: net/tinyos/tools/DelugeConsts.class(in = 1438) (out= 683)(deflated 52%)
adding: net/tinyos/tools/DelugeDataMsg.class(in = 5662) (out= 2309)(deflated 59%
)
adding: net/tinyos/tools/DelugeReqMsg.class(in = 5792) (out= 2332)(deflated 59%)

adding: net/tinyos/tools/Listen.class(in = 1455) (out= 827)(deflated 43%)
adding: net/tinyos/tools/ListenRaw.class(in = 4285) (out= 2328)(deflated 45%)
adding: net/tinyos/tools/LogMsg.class(in = 3875) (out= 1847)(deflated 52%)
adding: net/tinyos/tools/PrintDiagMsgs.class(in = 8923) (out= 4503)(deflated 49%
)
adding: net/tinyos/tools/Send.class(in = 1059) (out= 644)(deflated 39%)
adding: net/tinyos/tools/SimpleCmdMsg.class(in = 7669) (out= 2705)(deflated 64%)

adding: net/tinyos/util/ByteOps.class(in = 445) (out= 318)(deflated 28%)
adding: net/tinyos/util/Crc.class(in = 1106) (out= 711)(deflated 35%)
adding: net/tinyos/util/DTNStub.class(in = 1949) (out= 1152)(deflated 40%)
adding: net/tinyos/util/Env.class(in = 841) (out= 544)(deflated 35%)
adding: net/tinyos/util/LimitedStyledDocument.class(in = 1130) (out= 670)(deflat
ed 40%)
adding: net/tinyos/util/Messenger.class(in = 157) (out= 134)(deflated 14%)
adding: net/tinyos/util/PacketListenerIF.class(in = 212) (out= 168)(deflated 20%
)
adding: net/tinyos/util/PrintStreamMessenger.class(in = 701) (out= 402)(deflated
 42%)
adding: net/tinyos/util/SerialForwarderStub.class(in = 2347) (out= 1348)(deflate
d 42%)
adding: net/tinyos/util/SerialPortStub.class(in = 4019) (out= 2080)(deflated 48%
)
adding: net/tinyos/util/SerialStub.class(in = 388) (out= 249)(deflated 35%)
adding: net/tinyos/util/TinyLook.class(in = 2573) (out= 1293)(deflated 49%)


If I try to run surge I get:

$ java net.tinyos.surge.MainClass 0x88
Exception in thread "main" java.lang.NoClassDefFoundError: net/tinyos/surge/Main
Class


Also, since I did 

$ export CLASSPATH=C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\tools\java:${CL ASSPATH}



now echo $CLASSPATH looks like:



$ echo $CLASSPATH

C:tinyoscygwinopttinyos-1.xcontribxbowtoolsjava:C:tinyoscygwinopttinyos-1.xcontr

ibxbowtoolsjava





whereas before looked like:





$ echo $CLASSPATH

.;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\tinyos\cygwin\opt\tinyos-1.x\too

ls\java\jars\cup.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\Jama-1.0.1.

jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar;C:\tinyos\

cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar;C:\tinyos\cygwin\opt\tinyos-1.x\t

ools\java\jars\jdom.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\JLex.jar

;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar;C:\tinyos\cygwin\opt\

tinyos-1.x\tools\java\jars\oalnf.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\

jars\org.mortbay.jetty.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\pgjdb

c2.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar;C:\tinyos\cygwin

\opt\tinyos-1.x\tools\java\jars\pxgraphapplet.jar;C:\tinyos\cygwin\opt\tinyos-1.

x\tools\java\jars\xercesImpl.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars

\xmlParserAPIs.jar



It looks like I did something wrong and I am not sure now how to fix it. Please understand I am not a java or programmer person, yes I am researcher :-) so any help is appreciated. 





Amra


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050907/5a6045b6/attachment.html


More information about the Tinyos-help mailing list