Question

I am trying to access the mvn:dependency:tree in my window cmd

And it prompts me the following error: err1

Then I tried to check my Java installed location by doing so:

err2

So does this proves that my JAVA_HOME is setting at the correct directory?

Was it helpful?

Solution

Set your JAVA_HOME variable to C:/Program Files/Java/jdk1.7.0_51

Note : The Problem is that you are pointing to the jre/bin. You have to remove it and just point to the directory path till jdk1.7.0_51 (JAVA_HOME)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top