

64-bit ODBCĦ4-bit ODBC primer - when to use a 64-bit ODBC driver ODBC issues on 64-bit Linux, UNIX and Windows platforms background information on 64-bit architecture, operating systems and programming models. I have since become a contributor to the project.64-bit ODBC Drivers for Oracle®, SQL Server, Salesforce, MongoDB, Access, Derby, InterBase, DB2 & MySQL.


ResultSet rs = s.executeQuery("SELECT FROM ") Īt the time of writing this Q&A I had no involvement in or affiliation with the UCanAccess project I just used it. "jdbc:ucanaccess://C:/_tmp/test/zzz.accdb") mdb files using code like this // assumes.Ĭonnection conn=DriverManager.getConnection( Once that is done the project should look something like this: In the "Libraries" pane click the "Add" ( +) button and add the five (5) JAR files. IntelliJ IDEA: Choose File > Project Structure. NetBeans: Expand the tree view for your project, right-click the "Libraries" folder and choose "Add JAR/Folder.", then browse to the JAR file.Īfter adding all five (5) JAR files the "Libraries" folder should look something like this: When you are finished your Java Build Path should look something like this Click the "Add External JARs." button to add each of the five (5) JARs.

See the related answer here for details.Įclipse: Right-click the project in Package Explorer and choose Build Path > Configure Build Path. The UcanloadDriver class is only used in special circumstances and requires a different setup. NOTE: Do not add loader/ucanload.jar to your build path if you are adding the other five (5) JAR files. When you unzip it you will see something like ucanaccess-4.0.1.jarĪll you need to do is add all five (5) JARs to your project. HSQLDB (hsqldb.jar, version 2.2.5 or newer)Ĭommons-lang (commons-lang-2.6.jar, or newer 2.x version)Ĭommons-logging (commons-logging-1.1.1.jar, or newer 1.x version)įortunately, UCanAccess includes all of the required JAR files in its distribution file. So to use UCanAccess you will need to include the following components: Jackcess in turn has its own dependencies. Option 2: Manually adding the JARs to your projectĪs mentioned above, UCanAccess requires Jackcess and HSQLDB. The following is an excerpt from pom.xml, you may need to update the to get the most recent release: If your project uses Maven you can simply include UCanAccess via the following coordinates: The following is a brief overview of how to get it set up. It uses two other packages, Jackcess and HSQLDB, to perform these tasks. UCanAccess is a pure Java JDBC driver that allows us to read from and write to Access databases without using ODBC.
