Reputation: 3
Followed all the instructions on http://maven.apache.org/download.cgi
When I run 'mvn --version' in cmd, I get ........
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\bin..
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_03\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
The system cannot find the path specified.
I have tried to troubleshoot it myself. Followed these instructions too Installing maven on windows 7 64bit
1) navigate in explorer to the Maven directory 2) go to a dir IN the bin 3) copy the address in the address bar(must end with bin) 4) go to Start and type in "env" 5) Select "edit the system evironment variables" 6) find the PATH variable which must also have an existing value for Java as Maven needs Java. 7) append a ; + paste the path.
8) restart to update system 9) run "mvn install" in the cli.
I still get the same error.
PS: Here is my Path %M2_HOME%\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\bin;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Java\jdk1.7.0_03;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseSVN\bin;%M2%
Upvotes: 0
Views: 10045
Reputation: 5144
If you are getting error "The system cannot find the path specified" on executing other program/commands in Command Prompt than it is likely that path of a program which is set to autorun from cmd.exe has been changed. You can trace the autorun program using following registry location: HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
Modify the AutoRun entry in RegEdit to correct path and then retry the command in new cmd window.
Upvotes: 1