This is what I have in my "tinyos.sh" file
*********************
# script for profile.d for bash shells, adjusted for each users
# installation by substituting @prefix@ for the actual tinyos tree
# installation point.

TOSROOT="@prefix@/tinyos-1.x"
export TOSROOT
TOSDIR="$TOSROOT/tos"
export TOSDIR
CLASSPATH=`$TOSROOT/tools/java/javapath`
export CLASSPATH

# Extend path for java
type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre
--java`:$PATH
type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre
--javac`:$PATH
echo $PATH | grep -q /usr/local/bin ||  PATH=/usr/local/bin:$PATH
*********************
What should I put to set the path for Listen.class file?

Thanks a lot for you r help

Abdullah Kadri, P.Eng., Ph.D. Candidate 
The University of Western Ontario 
Department of Electrical and Computer Engineering 
Phone: (519) 661-2111 ext. 81271

-----Original Message-----
From: David Valencia [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 13, 2007 4:19 PM
To: Abdullah Kadri
Cc: 'David Valencia'; [email protected]
Subject: RE: [Tinyos-help] Running Listen tool

What is your CLASSPATH set to?  Is it blank? Sorry was not paying
attention and did not realize you are using tinyos-1.x.  There should be a
file "tinyos.sh" in /etc/profile.d; you can set CLASSPATH there and check
what it is set to.

> Thanks. Although I have "Listen.class" file in
> "C:/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/tools" folder, I am not
> able
> to see its path when I give "env" command. Any hint please?
>
> Abdullah Kadri, P.Eng., Ph.D. Candidate
> The University of Western Ontario
> Department of Electrical and Computer Engineering
> Phone: (519) 661-2111 ext. 81271
> -----Original Message-----
> From: David Valencia [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 13, 2007 3:18 PM
> To: [email protected]
> Cc: [email protected]; [EMAIL PROTECTED]
> Subject: Re: [Tinyos-help] Running Listen tool
>
> Abdullah Kadri,
>
> CLASSPATH is an environment variable.  You can check your environment
> variables by using the env (check all environment variables) or printenv
> CLASSPATH (just check CLASSPATH environment variable).  If you do not have
> "." in your CLASSPATH, you can accomplish this by editing the bash.bashrc
> file; add the following:
>
> export CLASSPATH="$CLASSPATH;."
>
> David
>
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 13 Nov 2007 14:24:57 -0500
>> From: Abdullah Kadri <[EMAIL PROTECTED]>
>> Subject: [Tinyos-help] Running Listen tool
>> To: [email protected]
>> Message-ID: <[EMAIL PROTECTED]>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> I got an error and found a solution to solve this error but could not
>> know
>> how to apply this solution. The solution by MS was to:
>>
>>
>> "Check these two things:
>> 1) There is a file named tools/java/net/tinyos/tools/Listen.class
>> 2) You have "." in your CLASSPATH"
>>
>> I have checked and found that I have the file named "Listen.class". Now
>> I
>> do
>> not know how set CLASSPATH and where? Any quick answer is highly
>> appreciated.
>>
>>
>>
>>
>>
>> Abdullah Kadri, P.Eng., Ph.D. Candidate
>> The University of Western Ontario
>> Department of Electrical and Computer Engineering
>> Phone: (519) 661-2111 ext. 81271
>>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>>
>
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/200711
> 13/fa327c3a/attachment.htm
>>
>> ------------------------------
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>> End of Tinyos-help Digest, Vol 55, Issue 45
>> *******************************************
>>
>
>
>


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

Reply via email to