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

    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 classes12.zip file. then also i am getting this error

    Please Help

    Thanx n Regards
    Sam

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    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:

    http://www.java-forums.org/faq.php?faq=forumrules

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

    Default

    Hi,
    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
    Posts
    2
    Rep Power
    0

Similar Threads

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