Subject | RE: [Firebird-Java] Re: Embedded Server |
---|---|
Author | Ryan Baldwin |
Post date | 2004-04-21T13:23:05Z |
Hi All,
The problem is that while its fairly easy to get jaybird.dll to search and
load the firebird library from really any location - the problem I was
having was that fbembed.dll then needs to load intl dll and udf dll's. I
could not get this to occur unless things where set up in the known to work
way - I tried quite a variaty of setups. I did'nt really have time to look
into how fbembed.dll searches for intl dll and udf dll's - but once this is
better understood(and how this interacts with the way jaybird.dll) then it
should be easily possible to make things more flexible in this respect.
Ryan
-----Original Message-----
From: Marco Parmeggiani [mailto:marcopar@...]
Sent: 14 April 2004 11:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Re: Embedded Server
In data Wed, 14 Apr 2004 09:23:04 -0000, hai scritto:
what i've understood is this and i may be wrong:
you execute your app using java.exe.
java driver loads its jni bridge dll. this dll is searched in the current
directory of the java app (where the jar resides) and in canonical places
defined by the system.
this bridge dll needs dlls for the embedded server.
these dlls are searched from the current directory of the application
that's executing (it's java.exe not your jar, so it searches in the
java.exe dir) and in canonical places defined by the system.
it seems to me that java.exe it's enough intelligent to search dlls also in
the jar directory but this intelligence it's not present in the jni dll
bridge.
i dont' know if the jni bridge could be written with this intelligence
built-in.
ciao
Yahoo! Groups Links
>it seems to me that java.exe it's enough intelligent to search dlls also inI just thought Id explain a little the problem I was having here.
>the jar directory but this intelligence it's not present in the jni dll
>bridge.
>i dont' know if the jni bridge could be written with this intelligence
>built-in.
>ciao
The problem is that while its fairly easy to get jaybird.dll to search and
load the firebird library from really any location - the problem I was
having was that fbembed.dll then needs to load intl dll and udf dll's. I
could not get this to occur unless things where set up in the known to work
way - I tried quite a variaty of setups. I did'nt really have time to look
into how fbembed.dll searches for intl dll and udf dll's - but once this is
better understood(and how this interacts with the way jaybird.dll) then it
should be easily possible to make things more flexible in this respect.
Ryan
-----Original Message-----
From: Marco Parmeggiani [mailto:marcopar@...]
Sent: 14 April 2004 11:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Re: Embedded Server
In data Wed, 14 Apr 2004 09:23:04 -0000, hai scritto:
> Thank you, It was already a big help, but I've another question:it's a known feature/limitation.
> I must Copy the Embedded Server binaries and the jaybird.dll in the
> bin-dir of my JRE?
> Can I Change this that I can use my application-dir for the binaries?
> Because it's easier to deploy.
what i've understood is this and i may be wrong:
you execute your app using java.exe.
java driver loads its jni bridge dll. this dll is searched in the current
directory of the java app (where the jar resides) and in canonical places
defined by the system.
this bridge dll needs dlls for the embedded server.
these dlls are searched from the current directory of the application
that's executing (it's java.exe not your jar, so it searches in the
java.exe dir) and in canonical places defined by the system.
it seems to me that java.exe it's enough intelligent to search dlls also in
the jar directory but this intelligence it's not present in the jni dll
bridge.
i dont' know if the jni bridge could be written with this intelligence
built-in.
ciao
Yahoo! Groups Links