New to using Ucanaccess #19
Replies: 2 comments 3 replies
-
I have continued to try to debug, and upon more research, it seems like I am using the latest ucanaccess version, but I haven't sourced the .jar correctly. Any ideas how I can do that? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
at shaded.io.github.spannm.jackcess.impl.DatabaseImpl.getEvalContext(DatabaseImpl.java:906)
.....
at net.ucanaccess.converters.LoadJet$TablesLoader.createTables(LoadJet.java:1050)
.....
Caused by: java.lang.ClassNotFoundException: javax.script.Bindings
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
....
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) {
Connection con = null;
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!
Beta Was this translation helpful? Give feedback.
All reactions