Prerequisites

An Integrated Development Environment

    You will need a modern IDE to work with Java
    Eclipse or Intellij can be used

JAVA

Install Java on your computer

Download and install the Java Software Development Kit (JDK) here
    This JDK version comes bundled with Java Runtime Environment (JRE), so you do not need to download and install the JRE separately.
    Once installation is complete, open command prompt and type:
      java -version
    If you see the following screen you are good to move to the next step
    1
    $ java -version
    Copied!
    1
    java version "1.8.0_162"
    2
    Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
    3
    Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
    Copied!
    Command line, run command: javac -version
    1
    [email protected][~/Documents/Selenium]$ javac -version
    2
    javac 1.8.0_162
    Copied!

Maven

Automatic Download

    Run autonomx -> setup.sh/.bat to automatically downloaded maven locally

Download Manually

    Unzip to a directory

Add to Environment

Windows

    Go to Environment Variables
    User "system variables", find Path variable and select edit
    Select new and enter the path to maven bin directory
    eg. c:\<install location>\apache-maven-3.6.1\bin
    Save and close
    Verify by opening command prompt and typing "mvn --version"

Mac

    Add maven path to bash profile:
    1
    vim ~/.bash_profile
    Copied!
    Add path:
    1
    export M2_HOME=/Users/someUser/apache-maven-3.6.1
    2
    export PATH=$PATH:$M2_HOME/bin
    Copied!
    Save and close
      press "shift + :" and type "wq!" to save
    Close and reopen the terminal
    Verify with "mvn --version"
    or you can use brew:
    1
    brew install maven
    Copied!
Last modified 1yr ago