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.
1.1 Installation Requirements and Related Tasks
To develop or run Java applications, download and install JDK.
For windows, perform the following actions:
- Download the latest JDK.exe installer here. In this case, Java 21.0.1 version is used.
- Select Yes to verify control access.
- Welcome to the Installation Wizard window appears and Click Next.
- 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. - Upon successful installation, JDK Successfully Installed message is displayed. Click Close.
- To verify Java Version, perform the following:
- Open a command prompt and run the following command to verify the installation to check the appropriate version of Java.
Java -version
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:
- Open a command prompt and run the following command to verify the installation to check the appropriate version of Java.
- To add Java Home in environmental variables, perform the following:
- Right-click on the Start button and select System.
Click Advanced system settings link on the right pane.
In the System properties window, select Environmental Variables button.
Select Java Home Path.
Click Edit.
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:
Click OK
Similarly, you need to update Path as shown in the secondary screenshot. Select the Path and click Edit.
The following screen is displayed with Path as C:\Program Files(x86)\Common Files\Oracle\Java\javapath.
Click Ok and Ok again.
- Right-click on the Start button and select System.
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
Feedback sent
We appreciate your effort and will try to fix the article