First step: Find the JDBC Driver
I used the ORACLE, oracle_home]\jdbc\lib\ below have a variety of JDBC, be sure to pay attention to compatibility issues, specific look at the second step, respectively, which file.
Step two: Add the driving path to the environment variable Classpath
-Add [Oracle_home]\jdbc\lib\classes111.zip and
[Oracle_home]\jdbc\lib\nls_charset11.zip to your CLASSPATH.
(Add classes12.zip and Nls_charset12.zip if JDK 1.2.x or 1.3 is
Used. Add Ojdbc14.jar and Nls_charset12.zip if JDK 1.4 is used.)
-Make sure [Oracle_home]\bin was in your PATH.
For example: my [oracle_home]=e:\oracle\ora92
The JDK is 5.0, and I'm using the jdk1.4 requirements: Ojdbc14.jar and Nls_charset12.jar.
So my classpath=. E:\oracle\ora92\jdbc\lib\ojdbc14.jar; E:\oracle\ora92\jdbc\lib\nls-charset12.jar;
Step three set Eclipse
That's easy.
Windows-〉perferences-〉java-〉buildpath->new (Take a name like: JDBC)-〉add jars (Find the path to the jar)-〉ok
Fourth Step Setup Project
Right-click the project name-〉buildpath-〉configer buildpath-〉libraries tab-〉ADD liabraries
It's OK!