Most of Java projects are now based on Maven, and using Selenium2 in Maven projects is very simple.
First, you need to configure the Maven environment
You can refer to the Maven installation and eclipse method to configure maven:
//www.VeVB.COM/softjc/416034.html
Official documentation
http://docs.seleniumhq.org/download/maven.jsp
Create a new Maven Project
Add it as follows to your POM.XML, and it's OK
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.44.0</version></dependency>