This discussion is archived
3 Replies Latest reply: Sep 7, 2012 7:12 AM by rp0428 RSS

JAVA jdbc connectivity

960572 Newbie
Currently Being Moderated
hello Sir,
I am getting "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver" exception while run the project. Please tell me the solution. I am using NETBEANS as a FRONT END and ORACLE 11G as a BACK END.
  • 1. Re: JAVA jdbc connectivity
    EJP Guru
    Currently Being Moderated
    You need to add the appropriate ojdbc?.jar file to your CLASSPATH.
  • 2. Classpath
    960572 Newbie
    Currently Being Moderated
    Hello Sir,
    I am not able to find classpath address of ORACLE 11g.
    I used this code
    "set classpath=C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib\ojdbc5.jar;.;"
    please send me the CLASSPATH address.
  • 3. Re: JAVA jdbc connectivity
    rp0428 Guru
    Currently Being Moderated
    Welcome to the forum!

    In Netbeans right-click on the project in the project tree and select 'Properties'. In the Properties dialog under 'Categories' select 'Libraries'. Then on the right side there is a button for 'Add JAR/Folder': find the ojdbc5.jar file and add it.

    Netbeans has help if you run into trouble.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points