Subject RE: [Firebird-Java] Embedded and UDF path problem
Author Ryan Baldwin
Hi Damien,

>I've made an UDF function. When i put the \UDF directory in the root
>path of my application, it doesn't works. I'm forced to put the UDF
>directory in the \bin of my java installation (C:\Program
>Files\Java\j2re1.4.2_01\bin). Same thing with firebird.msg.

I need too look into some issues regarding this - I'm not entirly sure which
sequence of directories
fbembed.dll runs through and appends '/UDF' too when loading a UDF dll...

You should find though that if the 'launcher' exe is in what you consider
too be the your root directory
then it should work - so for example if you copy java.exe or javaw.exe into
your app's root directory(the same
directory that contains the UDF directory) - and ensure you execute the exe
from that location - it should work.

One might imagine that setting the working directory
should work - but I havent seen this work - the problem presumably down too
where fbembed.dll checks obtains a
list of directories too search.

I'm not sure if simply requiring that the 'laucher' for the java application
be in the root of the fb embedded
directory structure is an acceptable solution - its certainly the simplest
from my perspective and I dont see
a problem with this - But what do you think ?

ps. You should also find a similar problem when fbembed.dll needs to load
the intl dll(s). And this has a similar
solution.

Thanks
Ryan

-----Original Message-----
From: damien_chambe [mailto:damien_chambe@...]
Sent: 23 December 2003 17:52
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Embedded and UDF path problem



I use firebird embedded (FBEmbeddedRC6ForJaybird.zip version).
I've put fbembed.dll and jaybird.dll in the root path of my
application. Works perfectly with the default firebird.conf, without
change anything.

I've made an UDF function. When i put the \UDF directory in the root
path of my application, it doesn't works. I'm forced to put the UDF
directory in the \bin of my java installation (C:\Program
Files\Java\j2re1.4.2_01\bin). Same thing with firebird.msg.

Is there a way to put the UDF directly in the path of my app ?

Thanks,

Damien






Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/Firebird-Java/

To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/