Domanda

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?

È stato utile?

Soluzione

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)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top