Tuesday, March 15, 2016

JDK and Maven PATH Settings

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

java path set
Java Path Setting

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

maven path
Maven Path settings

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;


java and maven
Java and Maven path settings
Once you finish click Ok. Thats all.






No comments:

Post a Comment