[Tinyos-help] cannot find symbol error in RadioCountToLed

Alshaboti alshaboti_ye at yahoo.com
Tue Nov 30 19:57:38 PST 2010


You are right ,Errors disappeared after I re-export CLASSPATH .
:handshake:
thank you in advance for your help.


Urs Hunkeler-2 wrote:
> 
> Hi,
> 
> I cannot find the original message. Was it sent to the tinyos-help 
> mailing list?
> 
> The SerialPacket class is normally generated when installing TinyOS. 
> Somehow this seems to have been forgotten when generating the image for 
> the virtual machine. An easy fix is to change the CLASSPATH to the .jar 
> file instead of the java directory, something like:
> 
> export CLASSPATH=.:/opt/tinyos-2.1.0/support/sdk/java/tinyos.jar
> 
> To make this change permanent you would need to modify tinyos.sh (I 
> think, I don't have a virtual machine here).
> 
> Cheers,
> Urs
> 
> On 11/14/10 3:06 PM, Alshaboti wrote:
>>
>>     HI,
>>
>> I have exactly the same problem with Xubuntos 2.1.0, and I sure that java
>> CLASSPATH correct.
>>
>> Until now I can't find any solution for this problem.
>>
>>
>> amit.singh wrote:
>>>
>>> hi,
>>>     i am new to tinyos and trying to compile application in tossim. i am
>>> using Xubuntos 2.1 in VMware.     when i used 'make micaz sim' in
>>> tinyos-2.0.2/apps/Blink$ directory, it built micaz tossim library
>>> successfuly. But when i used 'make micaz sim' in
>>> "tinyos-2.0.2/apps/RadioCountToLeds$" directory according to lesson 11
>>> of
>>> http://www.tinyos.net/dist-2.0.0/tinyos-2.0.1/doc/html/tutorial/lesson11.html
>>> tutorial, i got the following message and errors.
>>>
>>> mkdir -p simbuild/micaz
>>> mig python -target=micaz -DIDENT_APPNAME=\"RadioCountToLed\"
>>> -DIDENT_USERNAME=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\"
>>> -DIDENT_USERHASH=0x00f95284L -DIDENT_TIMESTAMP=0x4bb03ac8L
>>> -DIDENT_UIDHASH=0x6785dd85L -python-classname=RadioCountMsg
>>> RadioCountToLeds.h radio_count_msg -o RadioCountMsg.py
>>> mig java -target=micaz -DIDENT_APPNAME=\"RadioCountToLed\"
>>> -DIDENT_USERNAME=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\"
>>> -DIDENT_USERHASH=0x00f95284L -DIDENT_TIMESTAMP=0x4bb03ac8L
>>> -DIDENT_UIDHASH=0x6785dd85L -java-classname=RadioCountMsg
>>> RadioCountToLeds.h radio_count_msg -o RadioCountMsg.java
>>> javac RadioCountMsg.java
>>> /opt/tinyos-2.1.0/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.0/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.0/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) {
>>>                                   ^
>>> 3 errors
>>> make: *** [RadioCountMsg.class] Error 1
>>>
>>> i am not able to find the solution of the problem. Please help me
>>> regarding the errors.
>>>
>>>                                                     Regards,
>>>                                                             Amit Singh
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 

-- 
View this message in context: http://old.nabble.com/cannot-find-symbol-error-in-RadioCountToLed-tp28069339p30345209.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.



More information about the Tinyos-help mailing list