Monday, June 3, 2013

How to Create Java Project in Selenium

Procedure of Creating Java Project

1. File—New—Java Project
2. Give Project name (Selenium_scripts)
3. Click Configure JREs in that screen. You will get a new window.
4. Click Add—Standard VM
next.

JRE Home—we need to specify path.
Click  directory—browse  the  path  where  you  created  the  folder

(F:\Selenium_scripts1\jdk1.5.0_11\jre)

All jar files will be added.. click Finish and click OK

Click finish on the open window (New Java Project window)

You can see the new project Selenium_scripts in eclipse window.

Now Right click on JRE System Library[Java SE-1.6]
Select Build Path-configure Build Path.
A new window will be opened. Select Libraries tab and click Add External Jars
Button.
Select path F:\demo\lib and select all 4 Jar files click OK.
You can see all Jar files under Libraries Tab.
Click Ok.

You can see the Referenced Libraries

then everything is done.

No comments:

Post a Comment