RE: problem in installing/running maven
Wow! Rahul! You need to learn to crawl before you can learn to walk. This is not a Maven problem. You need to go to your manager or to a co-worker or to your cool friend with the following questions: 1. How do I run commands from a command prompt in Windows? 2. What's the difference between an environment variable and a command or an executable program? 3. What's the PATH environment variable for and how does it relate to my being able to run a program in Windows? That's just for a start. I'm not trying to put you down, we've all been there at one time, but you're going to have a lot of grief trying to learn any tool like Maven without improving your computer literacy first. And you'll start to irritate the folks on this list if you keep coming at them with these types of questions. Matt > -Original Message- > From: rahul bhalla [mailto:urcoolfrien...@gmail.com] > Sent: Wednesday, July 18, 2012 1:00 PM > To: Maven Users List > Subject: Re: problem in installing/running maven > > I also noticed that when issue give command > > C:\Users\sahil>%JAVA_HOME% > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > but i set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21 > > that means it is not displaying full java_Home Path > > On Thu, Jul 19, 2012 at 12:08 AM, rahul bhalla > wrote: > > > when issue the command it gives > > C:\Users\sahil>%M2_HOME% > > 'D:\springsource\apache-maven-3.0.3' is not recognized as an internal > or > > external > > operable program or batch file. > > > > > > -- > Regards > Rahul Bhalla > (9953225211) __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: problem in installing/running maven
I also noticed that when issue give command C:\Users\sahil>%JAVA_HOME% 'C:\Program' is not recognized as an internal or external command, operable program or batch file. but i set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21 that means it is not displaying full java_Home Path On Thu, Jul 19, 2012 at 12:08 AM, rahul bhalla wrote: > when issue the command it gives > C:\Users\sahil>%M2_HOME% > 'D:\springsource\apache-maven-3.0.3' is not recognized as an internal or > external > operable program or batch file. > -- Regards Rahul Bhalla (9953225211)
Re: problem in installing/running maven
Hi Please run the command SET in a command window and paste the relevant parts here, i.e. M2_HOME, M2, JAVA_HOME and PATH. On 2012-07-17 22:01, rahul bhalla wrote: > hi > I new to maven project and first time i to runand install maven > I followed the following steps which instruct by apache maven > >1. Add the M2_HOME environment variable by opening up the system >properties (WinKey + Pause), selecting the "Advanced" tab, and the >"Environment Variables" button, then adding the M2_HOME variable in the >user variables with the value *C:\Program Files\apache-maven-3.0.4* >2. In the same dialog, add the M2 environment variable in the user >variables with the value %M2_HOME%\bin. >3. In the same dialog, update/create the Path environment variable in >the user variables and prepend the value %M2% to add Maven available in >the command line. >4. In the same dialog, make JAVA_HOME in user variables with the > value C:\Program >Files\Java\jdk1.6.0_21 and that %JAVA_HOME%\bin is in your Path environment >variable. >5. Open a *new* command prompt (Winkey + R then type cmd) and run mvn >--version to verify that it is correctly installed. > > *C:\Users\sahil>mvn --version* > 'mvn' is not recognized as an internal or external command, > operable program or batch file > > if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin>* > then it runs . > > now please tell me what is problem when i try to issue a command from * > C:\Users\sahil>* directory > -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: problem in installing/running maven
> *C:\Users\sahil>mvn --version* > 'mvn' is not recognized as an internal or external command, > operable program or batch file > > if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin>* > then it runs . Please do not install Maven (or really anything) under Program Files, or any other directory with a space in it. Spaces in directory names can and will make your life more difficult. Make a c:\dev or c:\code or c:\projects, really anything, and install there. Then try to follow the instructions again and see if it works. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org