OK, now things are getting odd...what do you get when
you type "echo $CLASSPATH" in that shell? If it's not
what you wanted, it may be that something is overwriting
it later in the startup. You could look at all those
files I mentioned to see if there are other CLASSPATH
settings.

I explicitly set everything in my $HOME/.bashrc
and that seems to be the last file executed.

MS


H S wrote:
> Hey,
>  
> I put my commands in .bash_profile of home directory
>  
> -----------------------------
> echo "TINYOS 2.x"
> export TOSROOT=/opt/tinyos-2.x
> export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
> export CLASSPATH="$CLASSPATH;."
> export MAKERULES=$TOSROOT/support/make/Makerules
> export TOSDIR=$TOSROOT/tos
> type java >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre 
> --java`:$PATH
> type javac >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre 
> --javac`:$PATH
> echo $PATH | grep -q /usr/local/bin ||  PATH=/usr/local/bin:$PATH
>  
> ---------------------------------------------
>  
> My first command is echo and when i start with cygwin.. I can see this 
> ... so looks like my codes are executed as i start my shell..
>  
> but the problem of classpath continues.. on tos-check-env
>  
> ---------------------------------
> --> WARNING: CLASSPATH may not include '.' (that is,  the symbol for the 
> current
>  working directory). Please add '.' to your CLASSPATH or you may 
> experience conf
> iguration problems.
> ---------------------------------
>  
> surprisingly if i run the above config commands manually in my cygwin 
> shell and then do the env check .. this classpath error goes off..
>  
> I am totally confused why so ? and how I can make it solve..
>  
> Thanks
> HS
>  
> 
> 
> --- On *Thu, 29/7/10, Michael Schippling /<[email protected]>/* wrote:
> 
> 
>     From: Michael Schippling <[email protected]>
>     Subject: Re: [Tinyos-help] TinyOS Environment Setup
>     To: "H S" <[email protected]>
>     Cc: "tinyos help" <[email protected]>
>     Date: Thursday, 29 July, 2010, 12:45 AM
> 
>     All kinds of delicate little tweeks and kludges go into
>     forming the environment you get when you do
>         bash --login -i
>     which is what gets run when you double-click the happy
>     bash icon that should have been created for you. Any
>     of those tweekluges can go wrong in so many way, so I can't
>     tell you exactly what your problem is. The bash man page
>     (man bash) may have the order of execution delineated,
>     I don't remember offhand.
> 
>     Normally these files get sourced somehow:
>         /etc/profile and /etc/bash.bashrc
>         scripts in /etc/profile.d/*.sh
>         your $HOME/bash.bashrc and $HOME/.bashrc
> 
>     I would start by putting messages like
>        echo "I got to this file"
>     in each of the files and see if you see anything
>     when you start the shell.
> 
>     If all else fails, just put all your settings in
>     a convenient file and type:
>         source >myfile>
>     when you start the shell.
> 
>     MS
> 
> 
>     H S wrote:
>      > Hey,
>      >  I am very new in cygwin and tinyos.. Just learning it..
>      >  Please elaborate your previous mail guideline ..
>      >  I couldn't understand much ...
>      >  In which file should i place my command written in tinyos.sh file?
>      >  Thanks
>      > HS
>      >
>      > --- On *Wed, 28/7/10, Michael Schippling /<[email protected]
>     <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>>/*
>     wrote:
>      >
>      >
>      >     From: Michael Schippling <[email protected]
>     <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>>
>      >     Subject: Re: [Tinyos-help] TinyOS Environment Setup
>      >     To: "H S" <[email protected]
>     <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>>
>      >     Cc: "tinyos help" <[email protected]
>     
> <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>>
>      >     Date: Wednesday, 28 July, 2010, 2:26 AM
>      >
>      >     My understanding is that scripts in the /etc/profile.d
>      >     directory get run by bash when it starts a login shell.
>      >     This should be done by /cygwin.bat as:
>      >         bash --login -i
>      >
>      >     If that isn't happening, you could try "sourcing" the
>      >     script explicitly in your .bashrc
>      >
>      >     Also give a gander to "man bash" for more information
>      >     than most people can stand.
>      >
>      >     MS
>      >
>      >
>      >     H S wrote:
>      >      > Hey everyone,
>      >      >  I m using cygwin for tinyos-2.1
>      >      >  The content of my tinyos.sh file is
>      >      >
>      > 
>        
> -------------------------------------------------------------------------------------------------------------------
>      >      > export TOSROOT=/opt/tinyos-2.x
>      >      > export CLASSPATH=`cygpath -w
>     $TOSROOT/support/sdk/java/tinyos.jar`
>      >      > export CLASSPATH="$CLASSPATH;."
>      >      > export MAKERULES=$TOSROOT/support/make/Makerules
>      >      > export TOSDIR=$TOSROOT/tos
>      >      > type java >/dev/null 2>/dev/null ||
>     PATH=`/usr/bin/tos-locate-jre
>      >     --java`:$PATH
>      >      > type javac >/dev/null 2>/dev/null ||
>      >     PATH=`/usr/bin/tos-locate-jre --javac`:$PATH
>      >      > echo $PATH | grep -q /usr/local/bin || 
>     PATH=/usr/local/bin:$PATH
>      >      >
>      > 
>        
> -------------------------------------------------------------------------------------------------------------------
>      >      >  Every time I start my cygwin i have to run the above
>     manualy and
>      >     then cygwin function well
>      >      >  But it is supposed that command /chmod a+x
>      >     /etc/profile.d/tinyos.sh, made tinyos.sh file executable and
>     cygwin
>      >     should start with all this pre configured ../
>      >      > // /My problem is to run command of tinyos.sh file mannualy,
>      >     everytime i start cygwin/
>      >      > // /Is there any solution to fix this/
>      >      > // /Thanks/
>      >      > /HS/
>      >      >
>      >      >
>      >      >
>      >      >
>      > 
>        
> ------------------------------------------------------------------------
>      >      >
>      >      > _______________________________________________
>      >      > Tinyos-help mailing list
>      >      > [email protected]
>     
> <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>
>      > 
>        
> <http://aa.mc1100.mail.yahoo.com/mc/[email protected]>
>      >      >
>      > 
>        
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>      >
>      >
> 
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to