How to install Java,Maven and setup environment variables for Selenium

Environment setup
Install Java  7+
Download and install JDK 1.7 or higher version on your machine.
Download link: JDK 8

Set environment variables:

  • Add to PATH -> C:\\bin
  • Check JAVA version by running command "java -version"

Download and extract latest version of Maven archive on your machine.
Download link: Apache Maven

Set environment variables:

  • Add following new System variables
  • M2_HOME :
  • M2: %M2_HOME%\bin
  • PATH:%M2%
  • Check maven version by running command "mvn -version"