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"


Maven
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
  • JAVA_HOME:
  • PATH:%M2%
  • Check maven version by running command "mvn -version"
How to install Java,Maven and setup environment variables for Selenium How to install Java,Maven and setup environment variables for Selenium Reviewed by Ishan Dev Shukl on December 08, 2015 Rating: 5
Powered by Blogger.