Maven notes: maven cocould not create the Java Virtual Machine, mavenvirtual
1. Install maven and run mvn-v in cmd. the error "maven cocould not create the Java Virtual Machine" is returned"
2. Analysis: this is related to jvm. If java-version is run in cmd, it is normal.
3. Continue analysis: configure the environment variables when installing maven:
M2E_HOME: E: \ liberary \ maven
Path: % M2E_HOME % \ bin; (Add at the end of the Path variable)
MAVEN_OPTS:-Xms128m-Xmx512m
The MAVEN_OPTS variable is set because the default maximum memory of java is often insufficient for maven to run.-Xms128m indicates that the JVM occupies a minimum of MB of memory, and-Xmx256m indicates that the JVM occupies a maximum of MB of memory.
4. Check Environment Variables
Found: the word is wrong (if there is more than nothing, there will be a problem, no space), change I to X
5. correct modification. Run mvn-v again in cmd.
Analysis: the problem has been solved.