简体   繁体   中英

Testing UCanAccess with Oracle SQL Developer -> ODBC error

Quite exciting to find this jdbc driver for ms access.

However, when I try to test it with Oracle SQL Developer, I got:

Status : Failure -Test failed: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Quoted from UCanAccess website:

Because it is a pure java implementation it run in both Windows and non-Windows Operative Systems(eg, linux/unix). No ODBC needed.

What am I missing? Or I must configure ODBC in Windows environment?

You shouldn't be using an ODBC URL, to open a hypothetical test.mdb in the user's home directory you might use something like

File file = new File(System.getProperty("user.home"), "test.mdb");
Connection conn = DriverManager.getConnection("jdbc:ucanaccess://" + 
   file.getPath());

The JDBC url begins with jdbc:ucanaccess:// which is followed by the Access database file path.

Finally, make sure you have the required dependencies (which are documented as)

jackcess-2.0.0.jar or later

  • commons-lang-2.4.jar
  • commons-logging-1.0.4.jar

hsqldb.jar(2.2.5)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM