JAVA_HOME: The system cannot find the path specified.

Dear All,

I installed Github  recently and in hadoop command line I get following error

I ran into this problem couple of days ago and still not finding the way to resolve it.

Whenever I open the Hadoop command line, I get JAVA_HOME not set error as shown below

The system cannot find the path specified.
Error: JAVA_HOME is incorrectly set.
       Please update c:\Hadoop\hadoop-1.1.0-SNAPSHOT\conf\hadoop-env.cmd
Usage: hadoop [--config confdir] COMMAND

Few options I tried

1.Changed the Java_Home path to  C:\Hadoop\java\bin in my system

Also changed in C:\Hadoop\hadoop-1.1.0-SNAPSHOT\conf\hadoop-env.sh as export JAVA_HOME="C:\Hadoop\java\bin"

But this did not solve the problem

2.I had local installation of Java.So I thought it could be the problem. I also tried pointing JAVA_HOME in both my system environment variables and in script as

 export JAVA_HOME="C:\Program Files\Java\jdk1.7.0_40"

But again this problem has not solved

Am I missing out something here?

Did anyone face similar problem? If yes what is the solution.


Also note: entering java or javac in hadoop command line lists all the commands but none of the hadoop commands work
  • Edited by HadoopUser Tuesday, December 10, 2013 12:02 AM addition of note
December 9th, 2013 11:31pm

Thank you.The problem is resolved.I removed Emulator and reinstalled all over again...somehow its working without any error message!!
Free Windows Admin Tool Kit Click here and download it now
December 12th, 2013 12:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics