Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

ClassNotFoundException

Thu Oct 30, 2008 9:29 pm

I'm developing an Applet that connects to an Oracle Database and I'm
getting the ClassNotFoundException: oracle.jdbc.driver.OracleDriver

although I configured JBuilder8 normally as I did for my Java
Application (I developed a Java Application just to test the
connection with the same driver and the same driver configuration in
JBuilder).

The Java Application program didn't make any problem, but the Applet
generated this exception and, in the printStackTrace()-generated
text, I read this:

E:\Login\classes\oracle\jdbc\driver\OracleDriver.class (The system
cannot find the file specified).

I have configured JBuilder8 to use a library (in the required
library tab in project properties) that I added to it (just like I
did for my application). This library includes 3 .jar files
classes12.jar, ocrs12.jar, and nls_charset12.jar


Is there any difference between developing a database connectivity
for an application and that of an applet?
Can anyone help?



Re: ClassNotFoundException

Thu Oct 30, 2008 9:31 pm

Simple, you don't have the MySQL JDBC driver on the classpath. If you
don't have it at all, get it and put it on the classpath.

Post a reply