I am trying to install maven on my computer (windows 7)
Below are the steps that I have taken.
1. Installed Java 1.8.0.11 2. Added a system variable JAVA_HOME = C:\Program Files\Java\jdk1.8.0_11 3. Appended it to the path - PATH=%JAVA_HOME%\bin;C:\Program Files\......;... etc 4. Typed "Java -version" in command line and got the java version details as usual. 5. Then I downloaded and extracted the Maven 3.3.3 6. Added the M2_HOME to system variable.M2_HOME=C:\Program Files\apache-maven-3.3.3\apache-maven-3.3.3 7. Added M2 Variable M2=%M2_HOME%\bin 8. Appended M2 to Path variable. PATH=%M2%;%JAVA_HOME%\bin;....;...etc 9. Typed mvn --version in command line.
Get the following error.
Files were unexpected at this time.
What is wrong here? Please help me solve this problem.
Thanks in advance!
** Note. I do not use quotation marks for any of the paths here. I also tried with 8 char syntax for folder names as follows:
set java_home = "c: \ Progra ~ 1 \ Java"
The problems were not resolved. Read the steps I added and help me solve this problem. **
source share