> > DriverManager.getConnection(dbUrl,userName,password); > ... > > and it is my exception: > Exception in thread "main" > java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleD > river > ...
Means exactly that. The JVM was unable to locate the class OracleDriver. What you want to do is ensure that you have the appropriate Jar File containing this Driver. There should be a Jar File with a Name to the effect of SomeName-oracle-SomeOtherString.jar
Its obviously not called SomeName-etc... but it most likely has "oracle" within the String name terminated with a Jar.
Do the following:
jar -tvf SomeName-oracle-SomeOtherString.jar
And is should list if the OracleDriver is contained.
Then if you are using a *nix system. set the classpath as follows: