TABLE OF CONTENTS
1.Overview of Java Development Kit Installation
1.1 Installation Requirements and Related Tasks
2. Installation steps for Appium
3. Installation steps for Android Studio
3.1 Initiating Tablet and Appium
3.2 To set the Appium Settings
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. Installation steps for Appium
- Install Appium version 1.22.3 or the latest stable version.
- Download the installer from this link: Appium Desktop Releases. Choose the appropriate file for the windows.
- Click on the downloaded file, "Appium-Server-GUI-windows-1.22.3-4.exe."
- The Appium Setup dialog box appears, click “Install”.
- Wait for the process to complete.
- After completing the process, click “Finish”.
3. Installation steps for Android Studio
- Download the installer from this link: Android Studio.
- Select "I agree with the terms." Choose the file named "android-studio-ide-202.7486908-windows.exe”."
- Click the downloaded file, "android-studio-ide-202.7486908-windows.exe."
- Android Studio Setup window appears. Click Next.
- Choose the Android Virtual Device option and click Next.
- Click Next.
- Click “Install”.
- Wait for the process to complete and click Next.
- Click “Finish”.
Adding Android Home to environment variables
The Appium server needs to know where the Android SDK and other tools such as Tablet, Platform Tools are present to help us run the tests.
To set the path for Android Studio in system variables under environment variables.
Note: Make sure that Java compatible version is installed. To download the compatible version, refer to Java Downloads.- ANDROID_HOME -> C:\Users\DELL\AppData\Local\Android\Sdk
- JAVA_HOME -> C:\Program Files\Java\jdk1.8.0_201
- Update the following paths:
-> C:\Users\DELL\AppData\Local\Android\Sdk\platform-tools\
-> C:\Users\DELL\AppData\Local\Android\Sdk\tools\
-> C:\Users\DELL\AppData\Local\Android\Sdk
3.1 Initiating Tablet and Appium
Perform the following to set Tablet Settings:
- Open android studio > select "configure" option.
- Select AVD Manager from the drop down list as shown:
- After opening AVD manager, click the “Create Virtual Device” button.
- Select Android device, in this case tablet from Select Hardware and Select Image pop-up windows.
- Select the appropriate pixel version as shown in the following screenshot and update the required settings as follows, ensuring it has the Play Store, and click "Next."
- Enter a name for AVD manager as shown in the sample screenshot:
- Click Finish.
- Click the play button in the Actions column to start the tablet.
3.2 To set the Appium Settings
Perform the following:
- Open Appium desktop app and click the “Start Server v1.13.0” button.
- On the File Menu > select "New Session Window".
- Download and Install Appium Inspector
To download and install the latest version of the file, click .
- In Appium inspector, set the desired capabilities, add the following data for a tablet.
- After saving the Appium desired capabilities, click the “Start Session” to initiate the session.
- Verify that your tablet is running correctly.
Open a command prompt.
- Run the following command to verify that the tablet is recognized:
adb devices -l
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