Generally after the completion of the import oracle.jdbc.driver.*; Statement, you will find an error. This requires:
First, add JDBC driver to Classpath
Two methods. One is graphical, computer-attribute-Advanced Settings-environment variable-edit path, add absolute path JDBC driver name such as C:jdbclibojdc6.jar; Here JDBC driver has a version of the problem.
The second is CMD command line set, C:>set classpath=. Absolute path name JDBC driver name
Second, in their own projects to import this driver
Because I am a novice in Java, this is always forgotten, online search content mentioned this is not much.
Need to be in your own project Ricoux right-click to import the resource, such as Ojdbc6.jar.
Other similar, do not import, for example, you want to use the Oracle Spatial Sdoapi.jar and Sdoutl.jar, also need to import here, as well as the previous step to add to the classpath.