General completion of import oracle.jdbc.driver.*; After the meeting is declared, you will find an error. Then, you need to:
First, the JDBC drive to Classpath
Two different methods. One is graphical, computer-Properties-Advanced settings-Environment variables-edit path. Add absolute path \JDBC driver name such as D:\app\hello\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6_g.jar; There is a problem with the version number of the JDBC driver here.
The second is the CMD command line setting, C:\>set classpath=.; Absolute path name \JDBC driver name
Second, in your own project to import this driver
Because I am a novice in Java. This is always forgotten. The content of the Internet search is not much to mention.
You need to right-import the resource in your project Riku. such as Ojdbc6.jar.
The others are similar. It also needs to be imported, for example, you need to use the Sdoapi.jar and Sdoutl.jar moments provided by Oracle Spatial, which also requires import and classpath.
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
Java Contact Oracle Database