java - mvn --version not working? -


i have problem maven path have set path not working please see below path

path

....;c:\program files\java\jdk1.6.0_20\bin;d:\apache-maven-3.2.1\bin 

java_home

c:\program files\java\jdk1.6.0_20 

maven_home

d:\apache-maven-3.2.1 

when try run mvn --version give error of java_home please see error

error: java_home set invalid directory. java_home = "c:\program files\java\jdk1.6.0_20\bin" please set java_home variable in environment match location of java installation. 

but javac working fine

java_home needs point folder contains bin/, lib/, etc.

your variable points inside of java's home folder.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -