I have been trying to run the HighFrequencySampling program on a mica2
mote and have been having problems. When compiling and loading HFS.nc
to a mica2 I have no problems, when I compile and load TOSBase to a mote
no problems, when I run the make -f jmakefile no problems, but when I
run java Sample 200 20000 I get this error:
---------- Capture Output ----------
"C:\Program Files\Crossbow\Crimson\IDE.bat"
"C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling"
"c:\tinyos\cygwin\bin" "java Sample 200 20000"
#############################
Command: java Sample 200 20000
Cygwin: c:\tinyos\cygwin\bin
Directory: C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling
Directory: /opt/tinyos-1.x/apps/HighFrequencySampling
#############################
Could not find a platform specific version of TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.unknown.TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.unknown.TOSMsg
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:
115)
at
net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44)
at net.tinyos.message.Sender.<init>(Sender.java:87)
at net.tinyos.message.MoteIF.init(MoteIF.java:173)
at net.tinyos.message.MoteIF.<init>(MoteIF.java:155)
at Sample.app(Sample.java:70)
at Sample.main(Sample.java:49)
java.lang.NullPointerException
at net.tinyos.message.Sender.send(Sender.java:120)
at net.tinyos.message.MoteIF.send(MoteIF.java:200)
at Sample.app(Sample.java:76)
at Sample.main(Sample.java:49)
If anyone has ran into this in the past and might know how to fix this I
would be very appreciative if you could let me know.
Thanks,
Chris
Chris Byers
MacAulay Brown Inc.
4021 Executive Dr.
Dayton OH 45430
937-426-3421 (phone)
937-426-5364 (fax)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help