• Skip to main content
  • Skip to primary sidebar

AutomationTestingHub

Selenium, Appium, Cucumber and more !!!

Create new Appium project in Eclipse

July 13, 2023 by anish 9 Comments

Welcome to this next article in our Appium setup series. This article would cover in detail, the process of creating an Appium Project in Eclipse. We are trying to keep this process very simple and easy to understand, so we have broken down the complete Appium setup process into multiple articles. Once you complete this article, be sure to check out the remaining articles in our Appium Tutorial section.

Also, this article is more focused on helping you setup an Appium project from scratch. So we are keeping the project structure very basic for now. We will use a more realistic project structure at a later point in time, when we would start working on the frameworks. Let us now start with the process of creating Appium Project in Eclipse.

Open Eclipse IDE

We will create a new Java based project in Eclipse. Please make sure that you have installed Eclipse IDE. If not, you check out this guide on how to download and setup Eclipse IDE. Follow the steps given below to open Eclipse IDE –

1. Open the path where you have the unzipped Eclipse folder. Double click on eclipse.exe to open it

Open eclipse.exe

2. Once Eclipse starts opening, you would see the Eclipse logo

Eclipse IDE starts opening

3. Next you would see Eclipse Launcher popup box. You can either leave the Workspace location as the default value, or you can browse to any folder path you wish. For this article, we are leaving it as default

Select a Workspace - Eclipse

4. Click on Launch button. Eclipse would start loading all the files. Once its done, you will see the Eclipse IDE Welcome page like this

Eclipse IDE - Welcome Screen

Create new Appium Project in Eclipse

Create a new Java project in Eclipse by following the steps given below –

1. Select File -> New -> Project… option from Eclipse IDE

Appium Project : Eclipse - File - New - Project... option

2. In the New Project popup box, select Java Project and then click on Next button

Select Java Project from New Project popup

3. In the New Java Project popup box, write the project name as AppiumSetup. 

4. Uncheck Create module-info.java file checkbox. Leave all the other fields as it is and then click on Finish button

Create new Project in Eclipse for Appium

5. If the panel at the left side is collapsed, then you can restore it as shown below

Eclipse - Restore Left Panel

6. Eclipse IDE should now look like something as shown below. It would display your newly created project in the left side pane. If there are some additional panes on the right side (Tasks List, Welcome screen etc), then you can close those so that Eclipse IDE looks uncluttered

New Project created for Appium Setup

The new Appium project is successfully created in Eclipse. Let us now add the jar files to this project

Add Selenium and Appium jar files to your Eclipse Project

Expand ‘AppiumSetup’ project. You will see that it has 2 sub-folders or components inside it. These sub-folders are: src and JRE System Library. If you expand JRE System Library, you will see that it has some JAR files already added as shown in the below image. This is the minimum set of JAR files that is required to run a basic Java program.

Default JRE Libraries in Appium Setup project

Since you would be creating and running Appium scripts, you would need to add both Appium and Selenium jar files to your project. Follow the steps given below to add these jar files to your Appium project –

1. Right click on the Project. Then select Build Path > Configure Build Path… option

Configure Build Path - Appium Setup Project

2. Properties window will get opened as shown below. From the Libraries tab, first select on Classpath and then click on Add External JARS… button.

Add Appium JARs

3. Now navigate to the folder where you had downloaded Selenium WebDriver jar files. Select all the jar files from the selenium folder and click on Open button

Note: Version of jar files in the images might be different. Please make sure that you add the same jar files that you got from this article – download appium and selenium jar files

Add Selenium JARs to Appium Project

Do the same for all the JARs in the lib folder

Add Selenium JARs from lib folder to Appium project

With this, you have now added all the Selenium libraries to the project. Now let us add the Appium Java Client jar file as well

4. Again click on Add External JARs… button, and navigate to the folder where you have saved Java Client jar. Select the jar and click on Open button

Add Appium Java Client JAR to Eclipse project

5. Once all the jar files have been added, click on Apply and Close button to close the Properties window. Notice that a new sub-section called Referenced Libraries is created inside the project folder. Expand this Referenced Libraries section. You will see that it lists down all the JAR files that you had added in the above steps

References Libraries - Appium Java Client and Selenium WebDriver JARs


With this, we complete the process of creating a new project in Appium which included adding all the necessary JAR files. You can now switch over to the next article in our Appium Tutorial series, where you will learn about how to identify some important properties of the app which you want to automate.


Have any doubts or queries? Please feel free to contact us using our comments section.

Filed Under: Appium

Primary Sidebar

Automation Testing Hub

Tutorials Guide

Write test scripts in BDD format using our Cucumber Selenium Tutorial

Use our Appium Tutorial Series to setup Appium from scratch

Categories

  • Android
  • Appium
  • Cucumber
  • Java
  • Playwright
  • Selenium
  • Tosca

Recent Posts

  • Appium Inspector – Download and Install
  • How to download Chromedriver for Selenium
  • Run Playwright tests on different browsers
  • Playwright Automation Testing Tutorial
  • Selenium IDE Chrome Download

Recent Comments

  • Run Playwright tests on different browsers - AutomationTestingHub on Playwright Automation Testing Tutorial
  • Confluence: CPSSoft Test Framework on Appium Inspector – Download and Install
  • Playwright Automation Testing Tutorial - AutomationTestingHub on Download and Install – Node.js and NPM
  • Chrome浏览器在使用Java的Appium中无法启动。 | JAVA语言的经验与见解 on 2 Ways to find appPackage and appActivity name of your App
  • Appium Inspector Tutorial - AutomationTestingHub on Download and Install Appium 2 Server

Archives

  • January 2024
  • July 2023
  • March 2023
  • February 2023
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016

Latest Selenium 3 Guide

Are you using the latest version of Selenium WebDriver? It provides lot better support for the latest browser versions. Check it out here - Setup Latest Selenium WebDriver

Categories

  • Android
  • Appium
  • Cucumber
  • Java
  • Playwright
  • Selenium
  • Tosca

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in

Go to mobile version