Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.