Few facts about Environment variables

Yesterday, I had to install MULE esb in my machine for our new project. There were about three options to install it. I had to tried two of them because, the first method was bit confusing.By doing that I learnt many new things that I wasn't aware of. So I'm going to share them.

To edit or add new environment/system variables (windows)
start-->control panel-->system-->advanced-->environment variables

* if need to access some command from command prompt,first we need to set "path" variable accordingly.

ex: to invoke maven from cmd prompt we have to add M2_HOME and M2 envronmental variables and append M2_HOME to the path variable.

* When you try to enter a command in cmd line, if you get any error message saying " is not recognized as an internal or external command, operable program or batch file" It is probably because you have'nt add "C:\WINDOWS\system32" to your path variable.
If you have already added it, then check it's position there. It should be the first entry under path variable.

0 Response to "Few facts about Environment variables"

Post a Comment