java-installation
Selenium Installation Testing Tools

How to install Java Development Kit (JDK) on Windows

Now that we know What is Selenium and Selenium WebDriver, let’s move on to the next steps towards Automation scripting. What are the pre-requisites to writing automation scripts using Selenium? Obviously, you need the tools first. Additionally you need to finalize the programming language you will be using to write test scripts and install the associated IDE. As ‘Java’ is the most popular & widely used programming language across the world (both for development & automation testing) – we will be focusing on writing scripts in Java using Selenium. For that first you need to have the Java Development Kit, Eclipse IDE and Selenium WebDriver. Let’s start with installing Java Development Kit, popularly known as JDK.

  1. Visit the official Oracle Java Download webpage.

 

Oracle Java

Which Java development package do we need? For Selenium scripting, we need the 1stJDK.

  • Java SE Development Kit (JDK): For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.
  • Server Java Runtime Environment (Server JRE): Administrators running applications on a server. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (the Java plug-in), auto-update, nor an installer.
  • Java Runtime Environment (JRE): End user running Java on a desktop. Covers most end-users needs. Contains everything required to run Java applications on your system.
  1. Find the relevant JDK to-be-installed as per your Operating System specifications – Windows, Linux, Solaris, etc. If it’s Windows OS – make sure to download the correct JDK with respect to 64-bit or 86-bit. Accept the License agreement and click on the relevant download link for the latest JDK version.

 

java-windows

  1. Run the ‘.exe‘ file. It opens the Installation Wizard for Java SE Development Kit. Click ‘Next’.

 

java-installation

  1. Next screen gives you the option to select some optional features to install. Don’t make any changes and click ‘Next’.

 

install-java

  1. The initial installation starts.

install-java

  1. After initial component registration, a pop-up is displayed asking if you want to change the destination folder where Java will be installed. By default the location would be C:/Program Files >> No need to make any changes here unless you really want to change the destination folder. Just click ‘Next’.

java-folder

  1. The actual Java installation begins. Wait until the installation finishes.

java-installation

  1. Finally, you see a Java SE Development Kit – Complete pop-up. Congratulations! You have moved one step closer to writing scripts using SeleniumJava development is successfully installed in your system. Interested in reading Java documentation? You can click on ‘Next Steps’ button on the pop-up, else click ‘Close’!

install-jdk-java

Now that you have taken the first step to Selenium Automation – Java Development, don’t look back. The next step (article) would be to install Eclipse IDE (where you actually write the code).

Save

Save

Save

Save

Save

Save

Save

Leave a Reply

Your email address will not be published. Required fields are marked *