You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Blanca Hernández <bl...@gmail.com> on 2010/11/21 21:54:34 UTC
Fwd: Problem M2_HOME variabla
-------- Mensaje original --------
Asunto: Problem M2_HOME variabla
Fecha: Sun, 21 Nov 2010 21:08:12 +0100
De: Blanca Hern�ndez <bl...@gmail.com>
Para: users-subscribe@maven.apache.org
Hello,
I am having this problem in the image:
even if in the path displayed is correct and exists. I tryed anyway to
change this variable and the files in `C:\\Program
Files\Java\apache-maven-2.2.1` or `C:\\Program
Files\Java\apache-maven-2.2.1\bin` or `C:\\Program
Files\apache-maven-2.2.1\bin` as I read in different forums.
My enviroment variables are set up as follow:
Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%ROO_HOME%\bin;%M2_HOME%\bin;
M2_HOME=C:\Program Files\apache-maven-2.2.1
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
ROO_HOME=C:\spring-roo-1.1.0.RC1
My OS is Windows 7
Must I do something extra?
Thanks in advance
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/22 Blanca Hernández <bl...@gmail.com>:
> Hi!, You are right, I tought I had attached one image. Here it goes.
Apache Mailing lists do not support attachments.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Blanca Hernández <bl...@gmail.com>.
Hi!, You are right, I tought I had attached one image. Here it goes.
Thank you
El 21/11/10 22:39, Ron Wheeler escribi�:
> You do not say what your problem is.
> No error messages?
> No tests?
>
> %JAVA_HOME%\bin is missing from your path but since you do not show
> any errors, it is hard to tell what your problem is.
>
>
> Ron
>
> On 21/11/2010 3:54 PM, Blanca Hern�ndez wrote:
>>
>>
>> -------- Mensaje original --------
>> Asunto: Problem M2_HOME variabla
>> Fecha: Sun, 21 Nov 2010 21:08:12 +0100
>> De: Blanca Hern�ndez <bl...@gmail.com>
>> Para: users-subscribe@maven.apache.org
>>
>>
>>
>> Hello,
>>
>> I am having this problem in the image:
>>
>> even if in the path displayed is correct and exists. I tryed anyway to
>> change this variable and the files in `C:\\Program
>> Files\Java\apache-maven-2.2.1` or `C:\\Program
>> Files\Java\apache-maven-2.2.1\bin` or `C:\\Program
>> Files\apache-maven-2.2.1\bin` as I read in different forums.
>>
>> My enviroment variables are set up as follow:
>>
>>
>> Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%ROO_HOME%\bin;%M2_HOME%\bin;
>>
>> M2_HOME=C:\Program Files\apache-maven-2.2.1
>> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
>> ROO_HOME=C:\spring-roo-1.1.0.RC1
>>
>> My OS is Windows 7
>> Must I do something extra?
>>
>> Thanks in advance
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/23 Blanca Hernández <bl...@gmail.com>:
>> C:\Program Files (x86)
>
> The only difference I remember is this one (I'm also at work, not at home).
> I will try later, because my win7 is also 64.
I installed the 32 bit version of JVM for memory reasons (yeah I know
I can use compressed oops, but at the end this i will uninstalled
ASAP, so I really don't care). Anyway the choice of a 64 bit JVM for
Windows 7 64 bit is a right decision, so don't uninstall it.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Blanca Hernández <bl...@gmail.com>.
El 23/11/10 09:54, Antonio Petrelli escribió:
> C:\Program Files (x86)
The only difference I remember is this one (I'm also at work, not at
home). I will try later, because my win7 is also 64. The semicolon is
not the problem, I tryed with and without it!
Thanks Antonio!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/23 Blanca Hernández <bl...@gmail.com>:
> Could you please paste me you enviroments variable configuration??
> I have still the same problem. Thank you for your answers
Sure, I'll take it from my own memory since I tried it at home, and
now I am at work :-D
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0 (I changed the installation path)
M2_HOME=C:\Program Files\apache-maven
M2=%M2_HOME%\bin
PATH=.......;%M2%
BTW, taking a look at your original post, you put a semicolon at the
end of the Path variable, could it be the problem?
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Blanca Hernández <bl...@gmail.com>.
El 23/11/10 09:46, Antonio Petrelli escribió:
> 2010/11/22 Antonio Petrelli<an...@gmail.com>:
>> 2010/11/22 Blanca Hernández<bl...@gmail.com>:
>>> With the same error, just changing the path. Somebody told me the could be
>>> maybe Windows7 incompatibilities, do you think so??
>> No, however to be completely sure I have to check it at home this
>> evening (CET) where I have a Win7 machine.
>> Anyway, if someone here had experience with Maven+Win7, he/she is welcome.
> Tried on a Windows 7 64 bit machine, Oracle's JDK 1.6.0_22 32 bit, Maven 2.2.1
> Everything works like a charme.
>
> Antonio
Could you please paste me you enviroments variable configuration??
I have still the same problem. Thank you for your answers
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/22 Antonio Petrelli <an...@gmail.com>:
> 2010/11/22 Blanca Hernández <bl...@gmail.com>:
>> With the same error, just changing the path. Somebody told me the could be
>> maybe Windows7 incompatibilities, do you think so??
>
> No, however to be completely sure I have to check it at home this
> evening (CET) where I have a Win7 machine.
> Anyway, if someone here had experience with Maven+Win7, he/she is welcome.
Tried on a Windows 7 64 bit machine, Oracle's JDK 1.6.0_22 32 bit, Maven 2.2.1
Everything works like a charme.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/22 Blanca Hernández <bl...@gmail.com>:
> With the same error, just changing the path. Somebody told me the could be
> maybe Windows7 incompatibilities, do you think so??
No, however to be completely sure I have to check it at home this
evening (CET) where I have a Win7 machine.
Anyway, if someone here had experience with Maven+Win7, he/she is welcome.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Lars Fischer <lf...@fastmail.fm>.
2010/11/22 Blanca Hernández <bl...@gmail.com>
>
>
> I think this is not the problem, because, I also tryed something like
>
> M2_HOME = C:\apache-maven-2.2.1
>
> With the same error, just changing the path. Somebody told me the could be
> maybe Windows7 incompatibilities, do you think so??
>
Just a little hint, although I'm sure you already know this:
changes to system properties require to restart the programms referencing
them. You need to open a new shell directly from the windows startmenu to
use changed properties.
Lars
Re: Fwd: Problem M2_HOME variabla
Posted by Blanca Hernández <bl...@gmail.com>.
El 22/11/10 09:57, Antonio Petrelli escribió:
> 2010/11/22 Blanca Hernández<bl...@gmail.com>:
>> ERROR:M2_HOME is set to an invalid directory.
>> M2_HOME = C:\Program Files\apache-maven-2.2.1
> Just a shot in the dark: it may be the space in the path, can you try
> moving it in a different directory without spaces in the name?
> Notice that, if this solves your problem, it is definitely a Maven bug.
>
> Antonio
I think this is not the problem, because, I also tryed something like
M2_HOME = C:\apache-maven-2.2.1
With the same error, just changing the path. Somebody told me the could be maybe Windows7 incompatibilities, do you think so??
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/22 Blanca Hernández <bl...@gmail.com>:
> ERROR:M2_HOME is set to an invalid directory.
> M2_HOME = C:\Program Files\apache-maven-2.2.1
Just a shot in the dark: it may be the space in the path, can you try
moving it in a different directory without spaces in the name?
Notice that, if this solves your problem, it is definitely a Maven bug.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Blanca Hernández <bl...@gmail.com>.
Ok, sorry I didn't know...
The error I get is this one:
ERROR:M2_HOME is set to an invalid directory.
M2_HOME = C:\Program Files\apache-maven-2.2.1
Please set the M2_HOME variable in your enviroment to match the location
of the Maven installation
I will paste again my enviroment variables to make it clearer:
Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%ROO_HOME%\bin;%M2_HOME%\bin;
M2_HOME=C:\Program Files\apache-maven-2.2.1
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
ROO_HOME=C:\spring-roo-1.1.0.RC1
And the paths are rigth written, I mean, those directories exist.
Thank you again
El 21/11/10 22:39, Ron Wheeler escribió:
> You do not say what your problem is.
> No error messages?
> No tests?
>
> %JAVA_HOME%\bin is missing from your path but since you do not show
> any errors, it is hard to tell what your problem is.
>
>
> Ron
>
> On 21/11/2010 3:54 PM, Blanca Hernández wrote:
>>
>>
>> -------- Mensaje original --------
>> Asunto: Problem M2_HOME variabla
>> Fecha: Sun, 21 Nov 2010 21:08:12 +0100
>> De: Blanca Hernández <bl...@gmail.com>
>> Para: users-subscribe@maven.apache.org
>>
>>
>>
>> Hello,
>>
>> I am having this problem in the image:
>>
>> even if in the path displayed is correct and exists. I tryed anyway to
>> change this variable and the files in `C:\\Program
>> Files\Java\apache-maven-2.2.1` or `C:\\Program
>> Files\Java\apache-maven-2.2.1\bin` or `C:\\Program
>> Files\apache-maven-2.2.1\bin` as I read in different forums.
>>
>> My enviroment variables are set up as follow:
>>
>>
>> Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%ROO_HOME%\bin;%M2_HOME%\bin;
>>
>> M2_HOME=C:\Program Files\apache-maven-2.2.1
>> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
>> ROO_HOME=C:\spring-roo-1.1.0.RC1
>>
>> My OS is Windows 7
>> Must I do something extra?
>>
>> Thanks in advance
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: Problem M2_HOME variabla
Posted by Ron Wheeler <rw...@artifact-software.com>.
You do not say what your problem is.
No error messages?
No tests?
%JAVA_HOME%\bin is missing from your path but since you do not show any
errors, it is hard to tell what your problem is.
Ron
On 21/11/2010 3:54 PM, Blanca Hernández wrote:
>
>
> -------- Mensaje original --------
> Asunto: Problem M2_HOME variabla
> Fecha: Sun, 21 Nov 2010 21:08:12 +0100
> De: Blanca Hernández <bl...@gmail.com>
> Para: users-subscribe@maven.apache.org
>
>
>
> Hello,
>
> I am having this problem in the image:
>
> even if in the path displayed is correct and exists. I tryed anyway to
> change this variable and the files in `C:\\Program
> Files\Java\apache-maven-2.2.1` or `C:\\Program
> Files\Java\apache-maven-2.2.1\bin` or `C:\\Program
> Files\apache-maven-2.2.1\bin` as I read in different forums.
>
> My enviroment variables are set up as follow:
>
>
> Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%ROO_HOME%\bin;%M2_HOME%\bin;
> M2_HOME=C:\Program Files\apache-maven-2.2.1
> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18
> ROO_HOME=C:\spring-roo-1.1.0.RC1
>
> My OS is Windows 7
> Must I do something extra?
>
> Thanks in advance
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org