Subject Re: [Firebird-Java] ODCB JayBird doesn't work
Author Ferry Sumendap
Hi Tomas, you may try to set up java library path to the directory which
contains file libfbclient.so.2

${java_home}/java -Djava.library.path=/usr/lib/ -classpath ${classpath}
[your application]


Regards,
Ferry

On 10/3/07, tomas_fischer99 <tomas_fischer99@...> wrote:
>
> Hi,
>
> I'm trying to connect to a Firebird database via JayBird.
> Unfortunately, it doesn't work:
>
> I ran the DriverExample.java from the example folder in JayBird.
> It fails with an error message, that the firebird client library can't
> be found (see below).
>
> The libjaybird.so is located in Eclipse's build path. The Firebird
> client libraries are also present (Debian SID)
>
> > ldconfig -p | grep fbclient
> libfbclient.so.2 (libc6) => /usr/lib/libfbclient.so.2
> libfbclient.so.1 (libc6) => /usr/lib/libfbclient.so.1
>
> Other database access, e.g. with FlameRobin works fine.
>
> I've no idea what's going wrong. It would be great, if someone could help.
>
> Best regards,
> Tomas
>
> exception stack:
>
> Firebird JCA-JDBC driver version 2.0 registered with driver manager.
> org.firebirdsql.gds.impl.jni.InternalError:
> FirebirdApiBinding::Initialize - Could not find or load the firebird
> client library.
> at org.firebirdsql.gds.impl.jni.JniGDSImpl.nativeInitilize(Native Method)
> at
>
> org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList
> (JniGDSImpl.java:85)
> at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:29)
> at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:19)
> at
> org.firebirdsql.gds.impl.jni.LocalGDSFactoryPlugin.getGDS(
> LocalGDSFactoryPlugin.java:40)
> at org.firebirdsql.gds.impl.GDSFactory.getGDSForType(GDSFactory.java:219)
> at
> org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(
> FBManagedConnectionFactory.java:110)
> at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:125)
> at java.sql.DriverManager.getConnection(DriverManager.java:525)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
> at database.DriverExample.main(DriverExample.java:225)
>
>
>


[Non-text portions of this message have been removed]