Jay, What does the following give you on the command line?
bin=`dirname "$0"` //also try =`dirname "."` echo $bin Regards. Ron On Sat, Feb 4, 2012 at 10:56 PM, Jay <su1...@yahoo.com> wrote: > Hi, > > In Windows XP I installed Cygwin and tried to run Hadoop: > > W1234@W19064-00 /cygdrive/d/Profiles/w1234/My > Documents/Hadoop/hadoop1.0/hadoop-1.0.0 > $ bin/hadoop start-all.sh > bin/hadoop: line 2: $'\r': command not found > bin/hadoop: line 17: $'\r': command not found > bin/hadoop: line 18: $'\r': command not found > bin/hadoop: line 49: $'\r': command not found > : No such file or directoryn > bin/hadoop: line 52: $'\r': command not found > bin/hadoop: line 60: syntax error near unexpected token `$'in\r'' > 'in/hadoop: line 60: `case "`uname`" in > $ > > > I have this in the file hadoop-env.sh > > export JAVA_HOME=c:\\Program\ Files\\Java\\jdk1.7.0_02 > > How could I possibly fix it? > > Thanks a lot! >