3 Replies Latest reply: Sep 7, 2012 9:12 AM by rp0428 RSS

    JAVA jdbc connectivity


      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
          You need to add the appropriate ojdbc?.jar file to your CLASSPATH.
          • 2. Classpath
            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
              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.