Thanks.. It did not work. I am wondering what I should do after changing the tinyos.sh file? Do I need to execute any command? Also please find below my "bashrc" file. ****************** # ~/.bashrc
# # Initial .bashrc customized for TinyOS # $Id: bashrc,v 1.2 2003/10/07 21:46:11 idgay Exp $ # # Workaround for the fact that tinyos is installed by InstallShield and # InstallShield uses DOS directory format yet nesc wants to see Unix-style # directory names for TOSDIR. For example, an InstallShield wizard can set # a system-wide environment variable TOSDIR to # <appropriate-drive-letter>:\tinyos-1.x\tos\. In cygwin, you could then cd to # $TOSDIR, but nesc can't parse it. Nesc expects something like # /cygdrive/<appropriate-drive-letter>/tinyos-1.x/tos/. cd $TOSROOT export TOSDIR=`pwd`/tos cd $HOME # Historically, users have had difficulty keeping up with the CLASSPATH # requirements for TinyOS which, especially since 1.0.0, have increased # rapidly. `javapath` is a script that will determine what the CLASSPATH # should be. cd $TOSROOT; cd tools/java export CLASSPATH=`./javapath` cd $HOME PATH=/opt/tinyos-1.x/tools/java/net/tinyos/sim:$PATH export $PATH ****************** 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:42 PM To: Abdullah Kadri Cc: 'David Valencia'; [email protected] Subject: RE: [Tinyos-help] Running Listen tool The second thing suggested to check for "You have "." in your CLASSPATH"., which you do not. Try replacing the line export CLASSPATH with export CLASSPATH="$CLASSPATH;." > 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 >>> ******************************************* >>> >> >> >> > > > -- Development environment: CYGWIN Platform: TelosB (tinyos-2.x: cvs disribution) _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
