Set Up Java Environment System Variable/Path:
Step 1: Set up JAVA_HOME Variable
Right-clicking on ‘My Computer’ and choosing Properties.
Choose ‘Advanced system settings‘.
Under the Advanced tab Choose the ‘Environment Variable…‘ option.
Select New under System variables.
Define the Variable name as ‘JAVA_HOME‘ and Variable value as ‘C:\Program Files\Java\jdk1.8.0_45‘ (for this example JDK version 1.8.0 was installed in ‘C:\Program Files\Java\jdk1.8.0_45‘ folder; if needed, modify the real location).
Step 2: Set the PATH Variable
Now we need to specify the location in the PATH variable. For PATH, most probably it will already exists in your machine. So just select it and choose the Edit option.
In the editor add the value ‘;%JAVA_HOME%\bin‘ or ‘;C:Program Files\Java\jdk1.8.0_191\bin‘.
To check open cmd. Type ‘java -version‘.
4. Install Android SDK
a) Install Install Android SDK on Windows
After downloading above install SDK & install following packages:
Respective Android Version packages (ex: Android 6.0 ‘API 23’)
Android SDK Build-tools
Android SDK Platform-tools
Google Web Driver
b) Set Environment Variables:
1. Open Environment variable dialog, then under the User Variable table, click New.
2. Put ANDROID_HOME as variable name and provide the path of the SDK folder next to Variable value and click OK.
3. Go to the folder where SDK has been installed.
4. Inside the SDK folder look for ‘tools’ and ‘platform-tools’ folder.
5. Copy the path for both tools and platform-tools.
6. Open ‘Environment Variables’ dialog box.
7. Go to System Variables table and locate the Path variable.
8. Select path and click on Edit.
9. Add the ‘tools’ and platform-tools’ folder’s full path, as shown below.
5. Now Lets Setup Ecllipse:
Install Ecllipse add following from Eclipse MarketPlace:
Test NG
Android Development Tools for Eclipse
Android for Maven Eclipse 1.4.0
6. Download Appium Server
7. Download Maven
After downloading configure Maven environment variables.
1. Open Environment variable dialog, then under the System variables, click New.
2. Put M2_HOME as variable name and provide the path of the Maven folder in variable value and click OK.
3. Now edit Path variable and add following path "%M2_HOME%\bin.
**************************************************************************
That’s it finally Appium has been Set up 🙂
Comments