Installation Steps for Java Selenium Framework

Modified on Thu, 22 Aug at 3:26 PM

Applies to the Web Applications using Java Selenium framework.
To perform Web Test Automation using the Java Selenium framework, Java and Maven are the required components. 

The installation method varies depending on your requirement and the platform that you choose to install.


TABLE OF CONTENTS

1.Overview of Java Development Kit Installation

1.1 Installation Requirements and Related Tasks

2. Maven Installation on Windows

1.Overview of Java Development Kit Installation

Java Programming and Android Programming use the Java Development Kit (JDK) software. This software is a free download specifically created for programming Java applications. 
This article guides you through the download and installation procedure for setting up the JDK on your computer. 

To develop or run Java applications, download and install JDK.

For windows, perform the following actions:

  1. Download the latest JDK.exe installer here. In this case, Java 21.0.1 version is used.
  2. Select Yes to verify control access.
  3. Welcome to the Installation Wizard window appears and Click Next.

  4. Optionally, click the Change button if you wish to modify the installation folder path.
    Otherwise, click Next to proceed with copying the files into the specified folder.

  5.  Upon successful installation, JDK Successfully Installed message is displayed. Click Close.

  6. To verify Java Version, perform the following: 
    1. Open a command prompt and run the following command to verify the installation to check the appropriate version of Java.
      Java -version
    2. This command will display the installed Java version. If the JDK is properly installed and configured, you will see the following information about the Java version, as shown:


  7. To add Java Home in environmental variables, perform the following: 
    1. Right-click on the Start button and select System.

    2. Click Advanced system settings link on the right pane.


    3. In the System properties window, select Environmental Variables button. 

    4. Select Java Home Path.

    5. Click Edit.

    6. To ensure that JAVA_HOME is set correctly, check its value. The path will be updated based on your installation directory. For example, if Java is installed on the D drive, the path may differ from the default location a shown in the screenshot: 

    7. Click OK 

    8. Similarly, you need to update Path as shown in the secondary screenshot. Select the Path and click Edit. 

    9. The following screen is displayed with Path as C:\Program Files(x86)\Common Files\Oracle\Java\javapath.

    10. Click Ok and Ok again.

2. Maven Installation on Windows

To install Maven, refer to the Installing Maven on Windows article for step-by-step instructions. Ensure you download the latest version and install it on your windows operating system.





Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article