[Tinyos-help] High Frequency Sampling class path errors
Chris Byers
Chris.Byers at macb.com
Mon Feb 12 07:45:00 PST 2007
The attached is a print screen of an error I am getting when running the
HFS program. This error occurs when I run the command java Sample 200
20000 per the HFS README. Can anyone tell me how I may resolve this
error?
Thanks,
Chris
-----Original Message-----
From: Michael Schippling [mailto:schip at santafe.edu]
Sent: Wednesday, February 07, 2007 12:42 PM
To: Chris Byers
Subject: Re: [Tinyos-help] High Frequency Sampling class path errors
I haven't actually run the thing live,
but I'd assume you need something like this:
export CLASSPATH=".;$TOSROOT/tools/java/classes"
MS
Chris Byers wrote:
> Yes, I ran the whole jmakefile and a bunch off classes were made. I
> think it has something to do with a class path error, but I am not
sure
> how to fix it, and ideas?
>
> Thanks,
>
> Chris
>
> -----Original Message-----
> From: Michael Schippling [mailto:schip at santafe.edu]
> Sent: Tuesday, February 06, 2007 1:37 PM
> To: Chris Byers
> Cc: tinyos-help at Millennium.Berkeley.EDU
> Subject: Re: [Tinyos-help] High Frequency Sampling class path errors
>
> Did you run the whole jmakefile in the HFS directory?
> It generates a bunch of app specific message classes,
> but I'm not sure that is the real problem...
> MS
>
>
> Chris Byers wrote:
>> Dear TinyOS,
>>
>>
>>
>> I am trying to run the High Frequency Sampling program and have been
>> following the README. When I get to the command: java Sample 200
> 20000
>> I get the following 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)
>>
>>
>>
>> Could anyone please tell me what I should do to resolve this error?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Chris
>>
>>
>>
>
------------------------------------------------------------------------
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at Millennium.Berkeley.EDU
>>
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
> p
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HFS errors.doc
Type: application/msword
Size: 264192 bytes
Desc: HFS errors.doc
Url : http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070212/b559093a/HFSerrors-0001.doc
More information about the Tinyos-help
mailing list