It looks like "mvn --version" is simply calling "java --version", which is invalid. Check your installation again, and perhaps re-install from scratch if you still can't figure it out (delete it all and start over).
C:\>java --version Unrecognized option: --version Could not create the Java virtual machine. C:\>java -version java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode) Wayne On 6/29/08, Bernhard David <[EMAIL PROTECTED]> wrote: > Hello, > > what's your MAVEN_OPTS env variable set to? Maven passes that as arguments to > the java VM when executing. > > Yours, > > David Bernhard > > > -----Original Message----- > > From: James Davis [mailto:[EMAIL PROTECTED] > > Sent: 29 June 2008 00:20 > > To: [email protected] > > Subject: I get an Cannot create virtual machine error when > > trying to Install maven > > > > Hello, > > > > I have follow the step for installation word for word and I > > still can install mavem. When I run the test "mvn --version" > > in the command prompt I get the following error: > > > > Unrecognized option: - > > Could not create the Java virtual machine. > > > > Does anyone know what this means? I have copied and pasted my > > JAVA_HOME variable striaght from the address bar of my > > browser where I installed java. I must have went thorught the > > instructions a hundred times can someone please help. > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
