Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.sql.SQLException: No suitable driver found for jdbc:odbc

eefe6dc0-7c4a-4973-934c-3ecebdfa6901Feb 3 2015 — edited Feb 4 2015

Today , I'm connecting the Ms Access with netbeans but on the fnal step this error occured. I'm so tired to finf fix please help me

import java.sql.Connection;

import java.sql.DriverManager;

public class DBClass {

    Connection conn;

   

    DBClass() {

        try{

            String filename="Form.accdb";

            String database="jdbc:odbc:Driver={Microsoft Access Driver{*.mdb.*.accdb}};DBQ=";

            database += filename.trim() + ";DriverID=22;READONLY=false}";

            conn = DriverManager.getConnection(database, "","");

            System.out.println("Connection Passed");

        }

        catch(Exception e)

           

        {

    

    System.out.println(e);

    }

}

}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2015
Added on Feb 3 2015
1 comment
5,049 views