Subject | Re: [Firebird-Java] JayBird and FireBird locations |
---|---|
Author | Alec Swan |
Post date | 2009-09-28T19:30:52Z |
Hi Roman,
I confirmed that copying fbembed.dll, icudt30.dll, icuin30.dll and
icuuc30.dll to the working/startup directory fixed the problem and allowed
me to connect to Firebird via JayBird.
I appreciate this solution, but ideally I would like to keep all Firebird
libraries on one place in order to simplify the upgrade. I was hoping that
just setting the RootDirectory in firebird.conf, putting RootDirectory path
on java.library.path and adding firebird.conf to Java classpath would do the
trick. Is there a reason why this is not working this way?
How do other people configure Firebird and JayBird client environments?
Thanks,
Alec
I confirmed that copying fbembed.dll, icudt30.dll, icuin30.dll and
icuuc30.dll to the working/startup directory fixed the problem and allowed
me to connect to Firebird via JayBird.
I appreciate this solution, but ideally I would like to keep all Firebird
libraries on one place in order to simplify the upgrade. I was hoping that
just setting the RootDirectory in firebird.conf, putting RootDirectory path
on java.library.path and adding firebird.conf to Java classpath would do the
trick. Is there a reason why this is not working this way?
How do other people configure Firebird and JayBird client environments?
Thanks,
Alec
On Mon, Sep 28, 2009 at 12:27 PM, Roman Rokytskyy <roman@...>wrote:
>
>
> I just tried to reproduce what you have done, and it looks like that you
> have to put in the directory, from which you start the application
> (working dir, "."), the fbembed.dll, icudt30.dll, icuin30.dll and
> icuuc30.dll (rest can remain in %FIREBIRD% dir, at least that is my
> impression).
>
> My test batch file looks like this (Windows 7, 64 bit):
>
> @echo off
> set JAVA_HOME="C:\Program Files (x86)\Java\jdk1.6.0-32bit"
> set FIREBIRD="D:\Program Files\Firebird.2.1.3-embed"
> set PATH=%PATH%;%JAVA_HOME%\bin;%FIREBIRD%
>
> echo %PATH%
>
> %JAVA_HOME%\bin\java -Djava.library.path=%FIREBIRD% -classpath
> .;jaybird-full-2.1.6.jar %*
>
> This combination works.
>
> Trying to set the %FIREBIRD% does not work, though it should. Without
> copying icu*.dll files it won't work either. At least on Windows 7
> (maybe there were some API changes regarding the library loading). I did
> not start it in debugger to see where it crashes, but I will do this soon.
>
> Roman
>
>
[Non-text portions of this message have been removed]