I have set the classpath that points to a jar file "ojdbc14.ja r" and i compiled the program but it is not working at the run-time. It is giving the following error:
G:\>java TestJDBC
Exception in thread "main" java.lang.Class NotFoundExcepti on: oracle.jdbc.dri ver.
OracleDriver
at java.net.URLCla ssLoader$1.run( URLClassLoader. java:199)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(URLClassLoa der.java:187)
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:289)
at sun.misc.Launch er$AppClassLoad er.loadClass(La uncher.java:274 )
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:235)
at java.lang.Class Loader.loadClas sInternal(Class Loader.java:302 )
at java.lang.Class .forName0(Nativ e Method)
at java.lang.Class .forName(Class. java:141)
at TestJDBC.main(T estJDBC.java:7)
Will you give the suggetion
G:\>java TestJDBC
Exception in thread "main" java.lang.Class NotFoundExcepti on: oracle.jdbc.dri ver.
OracleDriver
at java.net.URLCla ssLoader$1.run( URLClassLoader. java:199)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(URLClassLoa der.java:187)
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:289)
at sun.misc.Launch er$AppClassLoad er.loadClass(La uncher.java:274 )
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:235)
at java.lang.Class Loader.loadClas sInternal(Class Loader.java:302 )
at java.lang.Class .forName0(Nativ e Method)
at java.lang.Class .forName(Class. java:141)
at TestJDBC.main(T estJDBC.java:7)
Will you give the suggetion
Comment