I have a Firebird DB file, test.fdb in some directory, I want to access the DB from java application. What are the required libraries files to access.
I am using Jaybird JDBC Driver to access the embedded Firebird database, but I'm getting the error
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jaybird22_x64 in java.library.path
I tried downloading and adding the jaybird22_x64.so file by System.setProperty("java.library.path", "/home/sk/Desktop/Jaybird/");
and also with System.load() and -Djava.library.path
The jaybird folder contains the file jaybird22_x64.so file.
I am using Ubuntu 17.04, with kernel 4.10.0-42-generic
Here is the exception I get.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jaybird22_x64 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at org.firebirdsql.gds.impl.jni.JniGDSImpl.initJNIBridge(JniGDSImpl.java:64) at org.firebirdsql.gds.impl.jni.JniGDSImpl.(JniGDSImpl.java:25) at org.firebirdsql.gds.impl.jni.EmbeddedGDSFactoryPlugin.getGDS(EmbeddedGDSFactoryPlugin.java:40) at org.firebirdsql.gds.impl.GDSFactory.getGDSForType(GDSFactory.java:275) at org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(FBManagedConnectionFactory.java:123) at org.firebirdsql.jdbc.AbstractDriver.connect(AbstractDriver.java:130) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at test.TestJavaFireBird.main(TestJavaFireBird.java:33)
Can anyone help, what libraries are required and how to load them?