because you are doing a mica2 you should do the avrmote....also if you go to tools/java and type make this should make all these for you.


Andrew

On 3/13/06, #AMIT SATPATHY# <[EMAIL PROTECTED]> wrote:
Thanks!
 
I am currently trying to run this on Mica2 motes. However, i looked at the folder you mentioned and there is no folder present for Mica2. There is a folder for MicaZ, avrmote and telos but no Mica2. What should i do in this case? Is a folder for Mica2 supposed to be present in there?
 
Thanks and regards.
 
Amit.


From: Andrew Redfern [mailto:[EMAIL PROTECTED]]
Sent: Tue 3/14/2006 10:54 AM
To: #AMIT SATPATHY#
Cc: Prabal Dutta; [email protected]

Subject: Re: [Tinyos-help] How to unset MOTECOM?

Hi Amit,

I have had the same problem some time ago.  What fixed it for me was to take a look at /tools/java/net/tinyos/message.  In that folder you will find folders for the different platforms.  You should go into the folder for the platform that you are using and compile it.

Hope this helps,
Andrew

On 3/13/06, #AMIT SATPATHY# <[EMAIL PROTECTED]> wrote:
The error is as follows:
 
---------- Capture Output ----------
"C:\Program Files\Crossbow\Crimson\IDE.bat" "C:\tinyos\cygwin\opt\tinyos-1.x\apps\HighFrequencySampling2" "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\HighFrequencySampling2
Directory: /opt/tinyos-1.x/apps/HighFrequencySampling2
#############################
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)
 
Thanks and regards.
 
Amit.


From: [EMAIL PROTECTED] on behalf of Prabal Dutta
Sent: Tue 3/14/2006 10:18 AM

To: #AMIT SATPATHY#
Cc: [email protected]
Subject: Re: [Tinyos-help] How to unset MOTECOM?

What's the actual error?  Can you cut and paste it?

- Prabal


On 3/13/06, #AMIT SATPATHY# <[EMAIL PROTECTED]> wrote:
>
> Thanks. That worked!
>
> But, i still get a platform specific TOSMsg cannot be found error when i run
> the JAVA program and after unsetting MOTECOM. What other bugs could be
> causing this problem? Thanks and regards.
>
> Amit.
>
> ________________________________
> From: [EMAIL PROTECTED] on behalf of Prabal Dutta
> Sent: Tue 3/14/2006 9:53 AM
> To: #AMIT SATPATHY#
> Cc: [email protected]
> Subject: Re: [Tinyos-help] How to unset MOTECOM?
>
>
>
>
> Typing: unset -v MOTECOM
>
> should do the trick (the -v flag indicates you want to unset a
> variable, but it's not necessary).  You can check that it's been unset
> by typing: echo $MOTECOM
>
> If it's blank, MOTECOM is removed as one of your environment variable.
>
> - Prabal
>
> On 3/13/06, #AMIT SATPATHY# <[EMAIL PROTECTED]> wrote:
> >
> > Hi.
> >
> > I am currently trying to use Serial Forwarder to listen for some packets.
> > However, whenever i run the JAVA program, i get an error saying that a
> > platform specific TOSMsg cannot be found. After looking through some of
> the
> > TinyOS help messages, i believe the problem lies in the setting of the
> > MOTECOM env settings. I previously had set it to export
> > [EMAIL PROTECTED]:mica2. I wish to remove this setting. What do i have
> to
> > do? I tried just typing unset MOTECOM but i don't know if that is correct.
> >
> > Thanks and regards.
> >
> > Amit.
> >
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
> >
>


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to