New to using Ucanaccess #19
|
Hello, I'm kind of a programming newbie and was hoping for some info on how to use this. I downloaded . zip of the code, but how do I proceed? For some background, I received a legacy jar file from work that relied on the old "sun.jdbc.odbc.JdbcOdbcDriver" method for connection. I tried to change it to ucanaccess by adding the ucanaccess-5.1.2-uber.jar to my classpath, but when I tried to run, I get the error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/script/Bindings I figured maybe because I am using a newer version of Access and I need to somehow incorporate your updates? here is what I am running: public static Connection getConnection(String strFileName) { where strFileName is the filepath to my .accdb. Any ideas on what could be my issue? Or do I just need to update to this new version, and if so, how do I do that? Any guidance is much appreciated! |
Replies: 2 comments 3 replies
|
UCanAccess is in the first place a pure Java JDBC driver. The uber jar ist provided for history and convenience reasons as well as special usage scenarios. Very release also ships with a source jar (amongst other) if that's what you're looking for. Link to the Sonatype Maven Central Release Repo The statement above |

UCanAccess is in the first place a pure Java JDBC driver.
The uber jar ist provided for history and convenience reasons as well as special usage scenarios.
Very release also ships with a source jar (amongst other) if that's what you're looking for.
We also publish snapshots (betas) of upcoming versions.
Link to the Sonatype Maven Central Release Repo
The statement above
SELECT [..] INTO HHDerived FROM LOGISis SQL dialect (Transact-SQL).Please don't expect this to work with UCanAccess / HSQLDB / MS Access, but stick to ANSI SQL. Create the table first, then insert into it.