HomeAppium

Appium – Installing and Configuring Java

Appium – Installing and Configuring Java

<<Previous Post       <<Complete Tutorial>>       Next Post>>

As mentioned before, I will be using Java programming language for creating the Appium Automation scripts in this tutorial, we need to install Java and configure it in our machines.

Lets get started!

Appium – Installing and Configuring Java

Follow the below steps for installing and configuring Java in Windows machine:

1) Google Search for ‘Java 8 download’ and click on the first link displayed in the search results as shown below:

Appium - Google Search Java 8 Download

2)  In the displayed ‘Java SE Development Kit 8 Downloads’ page, scroll down a bit and select the ‘Accept License Agreement’ option as shown below:

Appium - Java Download - Accept License Agreement

3) Now, download either 32 bit or 64 bit of Java for Windows based on your machine type. (Remember if you choose 32 bit version of Java, then you need to choose 32 bit version of Eclipse IDE later. And if you choose 64 bit version of Java, then you need to choose 64 bit version of Eclipse IDE later)

Appium - Java - Downloading Java

4) You will be asked to Login to the Oracle Account. (If you have not created an account with Oracle, create one and try to login). Login to the Oracle account.

Appium - Java Download - Login to Oracle Account

5) Observe that you will get logged in and immediately after logging in, your Java will start downloading as shown below:

Appium - Java Download Starts

6) Once the Java exe file get downloaded, double click on it to start installation (as shown below)

Appium - Java Install - Double click exe file

7) Click on ‘Next’ and ‘Close’ Buttons as shown in the below screenshots:

Appium - Java Installation Wizard - First Next

Appium - Java Installation Wizard - Second Next

Appium - Java Installation Wizard - Third Next

Appium - Java Installation Wizard - Close

8) Java Installation has successfully completed now. Now follow the next steps for configuring Java in your Windows machine.

9) Go the path C:\Program Files (x86)\Java\jdk1.8.0_211 and copy the Path of this JDK folder as shown below (If you have intalled 64 bit Java, then you need to go to the path C:\Program Files\Java\jdk1.8.0_211)

Appium - Java Path - JDK Copy

10) Right click on ‘This PC’ option and select ‘Properties’ option as shown below:

Appium - Java configuration - Select Properties Option

11) In the displayed ‘System’ Window, click on the ‘Advanced System Settings’ option as shown below:

Appium - Java Configuration - Click Advanced System Settings Option

12) In the displayed ‘System Properties’ dialog, click on the ‘Environment Variables’ button as shown below:

Appium - Java Configuration - Click Environment Vraibales Buttton

13) In the displayed ‘Environment Variables’ dialog, click on ‘New’ button under the System Variables section as shown below:

Appium - Java Configuration - Click New System Variables Button

14) In the displayed ‘System Variable’ dialog, type ‘JAVA_HOME’ into the Variable Name and Java JDK folder path (Copied in Step 9) into the Variable value as shown below and click on ‘OK’ button

Appium - Java Configuration - JAVA HOME System Variable

15) Verify ‘JAVA_HOME’ System variable is successfully added as shown below:

Appium - Java Configuration - JAVA HOME Variable Added

16) Go the path C:\Program Files (x86)\Java\jdk1.8.0_211\bin and copy the Path of this bin folder as shown below (If you have intalled 64 bit Java, then you need to go to the path C:\Program Files\Java\jdk1.8.0_211\bin)

Appium - Java Configuration - Copy Bin Folder Path

17) Now Select ‘Path’ variable in the ‘Environment Variables’ dialog and click on ‘Edit’ button as shown below:

Appium - Java Configuration - Edit Path Variable

18) In the displayed ‘Edit Environment Variable’ dialog, click on ‘New’ Button as shown below:

Appium - Java Configuration - New Button Edit Environment Variables

19) Now paste the Java bin folder path (Copied in step 16) and click on ‘OK’ button as shown below:

Appium - Java Configuration - Paste the Java bin folder path

20) Click on ‘OK’ buttons in the unclosed dialogs. Now, lets verify whether the Java has been configured properly by following the next steps.

21) Open command prompt and execute the command ‘Java -version’ as shown below:

Appium - Java Configuration - Java Version Command

22) On executing the above command, if you see the Installed and configured Java version displayed as below, then you can confirm that the Java has been successfully installed and configured in your machine:

Appium - Java Configuration - Successful Confirmation

As we have now installed Java in our machine, now lets go through the next articles to install the other Software that is required for Appium.

Next Steps:

  • > To learn more about Appium, continue to the next post (Click on Next Post Link Below)
  • > Check complete Appium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Jagadeesh Kotha

Connect to me on Linked In (Click here)

On a mission to contribute to the Software Testing Community in all possible ways.

<<Previous Post       <<Complete Tutorial>>       Next Post>>

Comments (0)

Leave a Reply

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

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp