2

I am trying to configure hadoop in cygwin. I have set JAVA_HOME as /cygdrive/c/work/java/jdk1.6.0_30 If I echo $JAVA_HOME, it displays correctly.

If I run the command bin/hadoop version it is giving the following error message:

/bin/java :No such file or directory.

Jason Aller
  • 2,360
Rashmi
  • 31

1 Answers1

1

The error message has nothing to do with JAVA_HOME. You have to add the path where your java is to the PATH variable:

PATH=$PATH:/path/to/java
export $PATH
Uwe Plonus
  • 1,434
  • 11
  • 13