You variables don't seem to be set.
Best would be to set them in my computer -> properties -> advanced ->
environment variables

After setting and closing the window, open a new command prompt.

I think proper syntax to set env variables in windows is

SET *VARIABLE*=*value*

and not

SET *VARIABLE* = *value*

Thanks
Sachin


> ------------------------------
>
> Message: 8
> Date: Wed, 26 Mar 2008 21:38:02 -0500
> From: "Kamna Jain" <[EMAIL PROTECTED]>
> Subject: [xwiki-devs] Problems with setting up Maven.
> To: [email protected]
> Message-ID:
>        <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
> I have been trying to build the XWiki sources but with no luck.
> I am getting stuck at the first step itself- setting up Maven.
>
> Following are the commands I use to set the envt. variables as indicated
> in
> this link - http://maven.apache.org/download.html#Installation and the
> errors I get.
> Can anybody tell from this, whats going wrong here?
>
> C:\>set M2_HOME = C:\Kam\Software\apache-
> maven-2.1-SNAPSHOT\apache-maven-2.1-SNA
> PSHOT
>
> C:\>set Path = %Path%;%M2_HOME%\bin
>
> C:\>echo %M2_HOME%
> %M2_HOME%
>
> C:\>set > env.txt
>
> C:\>set PATH = %PATH%;%M2_HOME%\bin
>
> C:\>set > env.txt
>
> C:\>set JAVA_HOME = "C:\Program Files\Java\jdk1.6.0"
>
> C:\>set PATH = %PATH%;%JAVA_HOME%\bin
>
> C:\>set > env.txt
>
> C:\>mvn --version
> 'mvn' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>mvn --version
> 'mvn' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>cd Kam\Software\apache-
> maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >mvn
> --ve
> rsion
>
> ERROR: JAVA_HOME not found in your environment.
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
>
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >set
> JAVA
> _HOME = "C:\Program Files\Java\jdk1.6.0"
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >mvn
> --ve
> rsion
>
> ERROR: JAVA_HOME not found in your environment.
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
>
> Thanks a lot in advance.
>
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to