This document helps you to setup/configure the Java JDK and Maven (download, install, configure and run) for your Java samples.
-
Install Java JDK 32 bit / 64 bit as per your PC configuration (Minimum Required version is - Java 1.8+) Java-JDK download link.
-
After Successful installation, search Environment variable in pc windows search bar and open system properties window.
-
Open Environment variable configuration and add JAVA_HOME System Variable and it's value as the installed JDK path.
- Install Maven
- Once the download has completed, extract the Maven archive to a directory of your choice.
- Open the Start menu and search for environment variables, click the Edit the system environment variables result.
- Under the Advanced tab in the System Properties window, click Environment Variables.
- Click the New button under the System variables section to add a new system environment variable
- 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.
- 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.
- Enter %MAVEN_HOME%\bin in the new field. Click OK to save changes to the Path variable.
- In the command prompt, use the following command
mvn -v
to verify the installation by checking the current version of Maven.