It's also because from cygwin the path isn't C:\program files\... its /cygdrive/c/... An alternative fix is to symlink your jdk to /jdk and then reexport JAVA_HOME is your bashrc as follows: $ symlink -s /cygdrive/c/Priogram\ Files/Java/jdk1.6.0_19 /jdk
and then add the following to your ~/.bashrc export JAVA_HOME=/jdk That fixed it for me. JIRA j...@apache.org wrote: > > installation under Windows fails with "bin/hadoop: line 243: c:\Program: > command not found" > ------------------------------------------------------------------------------------------- > > Key: HADOOP-4776 > URL: https://issues.apache.org/jira/browse/HADOOP-4776 > Project: Hadoop Core > Issue Type: Bug > Components: scripts > Affects Versions: 0.19.0 > Environment: Windows > Reporter: m costello > Priority: Minor > > > Perhaps a space in the path name is confusing Cygwin. The JAVA_HOME path > is the default "C:\Program Files\Java\jdk1.6.0_11". > > Changing > JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} > org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"` > to > JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} "${JAVA}" > org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"` > appear to correct the problem. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > > -- View this message in context: http://old.nabble.com/-jira--Created%3A-%28HADOOP-4776%29-installation-under-Windows-fails-with-%22bin-hadoop%3A-line-243%3A-c%3A%5CProgram%3A-command-not-found%22-tp20838356p28744384.html Sent from the Hadoop core-dev mailing list archive at Nabble.com.