Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 2.68 KB

File metadata and controls

57 lines (33 loc) · 2.68 KB

Setup for Maven and Java JDK.

Description

This document helps you to setup/configure the Java JDK and Maven (download, install, configure and run) for your Java samples.

Steps for Java-JDK setup

  1. Install Java JDK 32 bit / 64 bit as per your PC configuration (Minimum Required version is - Java 1.8+) Java-JDK download link.

  2. After Successful installation, search Environment variable in pc windows search bar and open system properties window. Environment vairable

  3. Open Environment variable configuration and add JAVA_HOME System Variable and it's value as the installed JDK path. System vairable

Steps for Maven setup

  1. Install Maven

Download Maven

  1. Once the download has completed, extract the Maven archive to a directory of your choice.

extract-maven

  1. Open the Start menu and search for environment variables, click the Edit the system environment variables result.

install-maven-edit-environment-variable

  1. Under the Advanced tab in the System Properties window, click Environment Variables.

install-maven-on-edit-environment-variable-path

  1. Click the New button under the System variables section to add a new system environment variable

install-maven-edit-environment-variable

  1. Enter MAVEN_HOME as the variable name and the path to the Maven directory as the variable value. Click OK to save the new system variable.

install-maven-on-windows-maven-home-variable

  1. Enter MAVEN_HOME as the variable name and the path to the Maven directory as the variable value. Click OK to save the new system variable.

install-maven-path-variable

  1. Enter %MAVEN_HOME%\bin in the new field. Click OK to save changes to the Path variable.

install-maven-on-windows

Verify Maven Installation

  • In the command prompt, use the following command mvn -v to verify the installation by checking the current version of Maven.

verifymaveninstallation

Further reading