You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by yuting lv <yu...@gmail.com> on 2009/07/02 07:20:33 UTC
maven error: can not create the java virtual machine
Hi,
I am a newbie to maven, this morning I followed maven install
documentation step by step and complete the maven install.
System: windows XP Professional sp2
Java Version: jdk1.6.0_02
Maven Version: 2.2.0
at first installed, under command line, I can run: mvn --version, it
seems Ok, and output like:
Java home: D:\Program Files\Java\jdk1.6.0_02\jre
System os Windows Xp and blablabla... no error, no warn
However after a while, I change my command line path to another disk
F, and run mvn --version again, it appears imcompatible initial and
maximum heap sizes sepcified error.
I follew this mail:
http://www.nabble.com/Incompatible-initial-and-maximum-heap-sizes-specified-td23284917.html
then changed my MAVEN_OPTS to this: "-Xms256m -Xmx256m"
run mvn --version again, then it output:
invalid initail heap size: -Xms256m -Xmx256m
can not create the java virtual machine
this is my environment variable setting, is there some wrong in it?
======================================================================
System environment variable:
path ------
D:\Program Files\ActiveState Komodo Edit
5\;D:\Perl\site\bin;D:\Perl\bin;C:\windows\system32\;C:\windows;C:\windows\system32\Wbem;D:\Program
Files\Java\jdk1.6.0_02\bin;D:\Tools\Tools\svn-win32-1.4.5\bin;D:\Program
Files\apache-ant-1.7.1\bin;D:\Tools\tomcat5.5.26\bin;D:\Program
Files\apache-maven-2.2.0\bin;
======================================================================
user environment varialbe:
Path %JAVA_HOME%\bin;%M2_HOME%\bin;
JAVA_HOME D:\Program Files\Java\jdk1.6.0_02
M2_HOME D:\Program Files\apache-maven-2.2.0
M2 %M2_HOME%\bin
MAVEN_OPTS "-Xms256m -Xmx256m"
======================================================================
Should I go back to install old maven version as 2.1.0? I like to use
the latest version of software, and my classmate says it is not a good
habit, because the latest version means
unstable performance.
Who can give me some suggestion, please? Thanks a lot!
ps: please forgive my poor english vocabulary
--
Best regards!
yutinglv
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven error: can not create the java virtual machine
Posted by Heinrich Nirschl <he...@gmail.com>.
2009/7/2 yuting lv <yu...@gmail.com>:
> then changed my MAVEN_OPTS to this: "-Xms256m -Xmx256m"
> user environment varialbe:
> Path %JAVA_HOME%\bin;%M2_HOME%\bin;
> JAVA_HOME D:\Program Files\Java\jdk1.6.0_02
> M2_HOME D:\Program Files\apache-maven-2.2.0
> M2 %M2_HOME%\bin
> MAVEN_OPTS "-Xms256m -Xmx256m"
Note the quotes around the value of MAVEN_OPTS! Try again after doing
set MAVEN_OPTS=-Xms256m -Xmx256m
- Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org