Installation Steps for Java Appium
Install the JDK and Appium for Java-based mobile app automation.
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.
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 installer
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, the 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 and check the 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:

-
-
To add Java Home to the environment variables, perform the following:
-
Right-click the Start button and select System.

-
Click the Advanced system settings link in the right pane.

-
In the System properties window, select the Environment Variables button.

-
Select the 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 as 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 then OK again.
-
Installation steps for Appium
Install Appium version 1.22.3 or the latest stable version.
Ensure you install a compatible version of Appium for your Java-based mobile automation setup.
Download the Appium Desktop installer
Download the installer from this link: Appium Desktop Releases.
Choose the appropriate file for Windows.
Run the downloaded Appium installer
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.
The installation progress bar indicates when the setup is complete.
After completing the process, click 'Finish'.

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 Platform Tools are located to run tests successfully.
To set the path for Android Studio in system variables under environment variables, perform the following:
Note: Make sure that a 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
Initiating the Tablet and Appium
Perform the following to set Tablet Settings:
Open Android Studio and select the 'Configure' option.
On the Android Studio welcome screen, click the Configure dropdown.
Select AVD Manager from the dropdown list.

After opening AVD manager, click the 'Create Virtual Device' button.

Select an Android device (in this case, a tablet) from the Select Hardware and Select Image pop-up windows.
Choose the hardware profile and system image that match your testing requirements.
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 the AVD as shown in the sample screenshot:

Click Finish.
The virtual device is now created and appears in the AVD Manager list.
Click the play button in the Actions column to start the tablet.
The emulator launches and the tablet home screen appears.
Set the Appium Settings
Perform the following:
-
Open Appium desktop app and click the 'Start Server v1.13.0' button.

-
From the File menu, select 'New Session Window'.

-
Download and Install Appium Inspector
To download and install the latest version of the file, click Appium-Inspector-windows-2023.12.2-x64.exe.
-
In the Appium Inspector, set the desired capabilities, add the following data for the tablet.

-
After saving the Appium desired capabilities, click '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