Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ClassNotFoundException

  Asked By: Pedro    Date: Mar 12    Category: Java    Views: 943
  

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?

Share: 

 

10 Answers Found

 
Answer #1    Answered By: Fairuzah Alam     Answered On: Mar 12

I think this ^^^^^^^^^^^^^^^^^^^^^^ here in the problem  in the code
you have to change it into http:\\oracle.jdbc.driver.OracleDriver
(im not sure about this http . might another praefix)

 
Answer #2    Answered By: Gerardo Morgan     Answered On: Mar 12

did you add odbc.jar in your project???
if didnt, you can donwload it from oracle  and must add to your project

 
Answer #3    Answered By: Kawakib Mansour     Answered On: Mar 12

I have downloaded Atinav's aveConnect JDBC Driver,and the
version of Java on my system is j2sdk-1_4 _2 _06 , n the database
which i have is MSACCESS.So,after installation,i tried to check a
simple program  as whether it executes or not,the compilation of the
program was perfect,but while running,it gave me an exception  called
ClassNotFoundException.Can anyone provide me a solution.


Can anyone specify the links or sites from where i can download the
JDBC Driver, at free of cost.

 
Answer #4    Answered By: Julia Hughes     Answered On: Mar 12

I am entirely new to eclipse and Java... While I am trying to
establish jdbc  Connection in a program  using Eclipse, I am getting the
following error:

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.

Can anybody help  me out with this issue... Thanks in advance...

 
Answer #5    Answered By: Scarlett Hughes     Answered On: Mar 12

Did you un-jar the Driver class-path?

 
Answer #6    Answered By: Marina Smith     Answered On: Mar 12

Thanks... It's working fine after unjarring the thing...

 
Answer #7    Answered By: Verner Fischer     Answered On: Mar 12

You will need to set the CLASSPATH of your project  in Eclipse to include the
path for the mySQL JDBC driver. Check the help  on CLASSPATH in Eclipse.

Hope htis helps, sorry, I know that Eclipse is a bit impressive at first...

 
Answer #8    Answered By: Luz Hayes     Answered On: Mar 12

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.

 
Answer #9    Answered By: Vidos Fischer     Answered On: Mar 12

After adding jar  files into my Project, it's working fine...

 
Answer #10    Answered By: Hoor Khan     Answered On: Mar 12

In Eclipse goto project  Properies.
In Project properties  click Java Build Path
There comes a tabbed dialogue boxes.
Select "Libraries" tab  and click "Add External Jars".
Now select the jar file  for MYSQL JDBC driver.

If this jar  file is already present in project's library  directory
then add it to project using "Add Jars".

 
Didn't find what you were looking for? Find more on ClassNotFoundException Or get search suggestion and latest updates.

Related Topics:




 
 
 
 

Related Post