Subject Re: [Firebird-Java] Connecting to Firebird embedded via Jaybird
Author Roman Rokytskyy
> 1. Putting the necessary stuff (Firebird embedded files: fbembedd.dll,
> ib_util.dll, firebird.conf, firebird.msg, the UDF and INTL
> subdirectories with it's contents) to the directory
> %CATALINA_HOME%\embeddb within tomcat installation dir, right as
> described in the related documentation (README_embedded.txt from
> distribution package),

set FIREBIRD=%CATALINA_HOME%\embedded

otherwise it will not find its config, UDF and INTL libs. firebird.msg is
not needed, since JayBird interprets the messages itself.

> 2. Renaming fbembedd.dll to fbclient.dll

Not needed.

> 3. Including jaybird.dll into %CATALINA_HOME%\embeddb

Ok.

> 4. Modifying the startup script, so that 'java.library.path' points to
> $CATALINA_HOME\embeddb
>
> That's what I'm encountering, if I try to connect via Jaybird 1.5.5:
>
> java.lang.RuntimeException - Failed to initilize jaybird native library.
> This is most likley due to a failure to load the firebird client library.

If you specify jdbc:firebirdsql:embedded: JDBC URL, it tries to find
fbembed.dll, not the fbclient.dll or gds32.dll (the error message in 1.5.1
is incorrect). So, if you renamed fbembed.dll into fbclient.dll, you have to
use jdbc:firebirdsql:local: URL (which would work, but conceptually in
wrong).

Hope this helps.

Roman

P.S. Also we would be grateful if you can test JayBird 2.0.0 RC1 in the same
setup.