2014-12-21 2 views
-1

Windows 8 컴퓨터에 maven을 설치하려고합니다. cmd를 입력하고 mvn을 입력하면 터미널에서 다음과 같은 오류를 표시합니다.설치 및 설정

Error: JAVA_HOME is set to an invalid directory
JAVA_HOME = NOTE: this is the location of the jdk file in my programs files on my c drive.
Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

+2

메이븐 http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html의 –

+0

가능한 중복 [메이븐을 설치할 수 없습니다 : "자바 \의 _HOME입니다 잘못된 디렉토리로 설정 "] (http://stackoverflow.com/questions/1184056/unable-to-install-maven-java-home-is-set-to-an-invalid-directory) – Joe

답변

0

이 때문에 잘못된 파일 경로입니다, 당신은 JDK가 설치된 C에 JAVA_HOME을 설정할 수 있습니다, 너무/빈 준 수 : \ PROGRAMFILES \ 자바 \의 jdk1.7

0

문제는 경로가 정정되지 않았기 때문입니다. 5 분에서

Make sure that the directory "\apache-maven-x.x.x\bin" is on your command search path. 

Make sure that the `JAVA_HOME` variable refers to the home directory for your Java installation. If you are executing Java from "c:\program files\jdk\bin", then the JAVA_HOME variable needs to point to "c:\program files\jdk". 
+0

당신은 진지하고 사용하고 있습니까? 메이븐 2.2.0? 정말? Maven 3.2.5가 릴리스되었습니다 ... [Maven 2 End of Life] (http://maven.apache.org/maven-2.x-eol.html)를 업그레이드하십시오. – khmarbaise