Trouble with Maven installation on Win 7 - broken Path system variable?
Dave Nice
Greenhorn
Joined: Jan 06, 2013
Posts: 3
posted
0
Hi,
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??
Thanks for your reply. I'm a little confused all round (easily done). I know that, to get Maven working I need to put the following variable entry in System Variables:
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).
So, I don't know if the fact it is broken is causing the fail in the Maven installation, or if I am doing something wrong with the installation and, of course, I need to fix the Path!
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.
Ok, sorry for the delayed reply. I moved to another machine to try and resolve the issue. I am now working on a Windows 8 machine. I have installed Maven to here:
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...)