Вопрос

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?

Это было полезно?

Решение

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)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top