JDK and Maven Path settings are very easy to configure in environment variables. The below process will explain.
1.Goto your environment variable and click on that button.
2. Under System variables, click on New button. It will give you an option to add the below two fileds.
Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.6.0_31
3. If you need you can configure maven , else leave maven configuration step.
For maven configuration, again click New button, it will ask you to enter variable name and variable value like step 2.
Variable name : MAVEN_HOME
Variable value : C:\Softwares\apache-maven-3.0.4-bin\apache-maven-3.0.4
Once you finished both JAVA_HOME and MAVEN_HOME, we should add it in User variable like below. Please carefully place ; and \bin; (copy and paste it).
Variable name : PATH
Variable value : %JAVA_HOME%;%MAVEN_HOME%\bin;
Once you finish click Ok. Thats all.
1.Goto your environment variable and click on that button.
2. Under System variables, click on New button. It will give you an option to add the below two fileds.
Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.6.0_31
Java Path Setting |
For maven configuration, again click New button, it will ask you to enter variable name and variable value like step 2.
Variable name : MAVEN_HOME
Variable value : C:\Softwares\apache-maven-3.0.4-bin\apache-maven-3.0.4
Maven Path settings |
Variable name : PATH
Variable value : %JAVA_HOME%;%MAVEN_HOME%\bin;
Java and Maven path settings |
No comments:
Post a Comment