Results 1 to 4 of 4
  1. #1
    javaneed is offline Member
    Join Date
    Aug 2007
    Rep Power

    Thumbs up Problem connecting to my Database using Java

    Hi all,

    I am new to Java and also new to this forum.

    First of al hi to al of u.

    I am facing a problem. I have developed an application using Java Jsp, which connects to Oracle database, which is in my system only.

    but after starting tomcat when i am running the jsp which is in turn connecting to the database, i am getting the following error -

    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    I have set the environment variable CLASSPATH with the file. then also i am getting this error

    Please Help

    Thanx n Regards

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power


    Hi Sam,

    This is the third thread i have seen for the same problem. Please do not cross-post the same question. Here is the FAQ for the forum rules:

  3. #3
    Swamipsn is offline Member
    Join Date
    Jul 2007
    Rep Power


    This problem is a most common one , its means your JVM unable to find out oracle.jdbc.driver.OracleDriver class file. So place the driver class file into
    both Java and Tomcat's lib directory.

  4. #4
    sunnyvijaya is offline Member
    Join Date
    Aug 2007
    Rep Power

Similar Threads

  1. connecting to a database
    By mxb7642 in forum JDBC
    Replies: 5
    Last Post: 09-08-2009, 08:39 AM
  2. Connecting to a database
    By peiceonly in forum New To Java
    Replies: 2
    Last Post: 04-06-2008, 02:28 PM
  3. problem in connecting to mysql database
    By nancyv in forum Java Servlet
    Replies: 6
    Last Post: 04-02-2008, 11:33 AM
  4. Replies: 0
    Last Post: 02-13-2008, 11:26 AM
  5. connecting to mysql database
    By javagal in forum NetBeans
    Replies: 2
    Last Post: 08-04-2007, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts