I'm trying to install Maven and to make the process easier, have installed Rapid Environment Editor. I cannot get the installation to work but I think REE has helped me discover the reason - the 'Path' System Variable is in red and showing as broken. I have no idea what it should be and am loathe to tinker in case I make major screw ups to the system. Can anyone help with this??
I cannot see the variable in the Path, but when I try and add it, it tells me it already exists. Now, in REE, my Path is red which tells me it is broken (was broken even before the Maven installation).
What is REE? (Oh, OK, I see that you already said what it is. My recommendation: get rid of REE! It's just messing things up. See the second paragraph below for the starting steps)
Exactly where are you getting the environment variable values from that you are posting? From a command prompt?
Also, after you set M2_HOME and PATH, did you then open a new command prompt?
Finally, describe in detail exactly what you are doing to set the env vars. Example: right-clicked Computer, clicked Properties, clicked Advanced System Settings, clicked Environment Variables, under User Variables for XXX clicked New... (and so on). Also state the exact version of Windows. I am asking for this because based on what you wrote so far, it should have worked, so my only conclusion is that I am making assumptions about exactly what you did - if I could watch over your shoulder I could probably spot the issue right away, but I cannot do that so I need a blow-by-blow description.
That should do it. If it still doesn't work, from the command line, enter "set PATH" and post the output. (Looking at the setting for PATH is all well and good, but you really need to examine the resulting PATH after all of the env vars have been interpreted to see what is really going wrong)
But take my advice and do not install any Java components into Program Files (or into any folder where there is a space in the path). On my systems I create a c:\apps\Java directory and place Maven, Ant, Eclipse, Tomcat, etc, etc, etc there. Spaces in paths can give fits to some Java code - I have solved way to many issues in the Java Ranch forums by having people move their Java apps out of Program Files and Documents and Settings (the later of which has not been an issue since Vista...)