Subject Re: [Firebird-Java] Re: Embedded Server
Author Niki Ivanchev
Marco, we are _selling_ this applications for more than 8 months and we
havn't a single complaing about anything database related.
That's what I do
application is installed into
c:\Program Files\Application - this becomes user.dir when launching app
there I put
database.fdb
fbembedded.dll
jaybird.dll
msvcp60.dll /only if instalation procedure detects win98se or win98me/
launcher.exe

in my mainApp.java
String jlp = System.getProperty("java.library.path");
String ud = System.getProperty("user.dir");
System.setProperty("java.library.path",ud+System.getProperty("path.separator")
+"."+System.getProperty("path.separator")+jlp);
try {
initConnection();
} catch (DatabaseException) {
// do some stuff DatabaseException is our exception
}

works fine.
I can send you an URL to get a trial of one of the software which is
using embedded.
launcher.exe is build from commercial vendor - exe4j.
But it does nothing in common with libraries, since we use the same code
when developing and debugging
Nick

Marco Parmeggiani wrote:

>In data Wed, 21 Apr 2004 14:58:13 +0300, hai scritto:
>
>
>
>>Simply modify library.path to include the folder where you have dll's
>>*before* initializing database
>>
>>
>
>i've added -Djava.library.path=.....
>to the command line but that property only helps to find the jaybird.dll if
>it's not in the same directory of the jar or in system paths.
>jaybird.dll will search for other dlls but will not search in that
>directory because that property is used by java.exe to find libraries
>loaded at runtime by java code. jaybird.dll once loaded searches dlls as a
>standard program would do and no java.library.path is involved in this
>search.
>Are you sure you do not have embedded stuff in some system path?
>
>ciao
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



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