I found a similar error as mine on stackoverflow and added selenium webdriver jar files to the project using the below method :
right click on project--> goto build
Please follow the below steps: