|Subject||Re: [Firebird-Java] Re: Problems with embedded java|
> Is there any possible way to embed everything into one directory?Driver tries to load library by name, not by path. The only thing you have
> Maybe have the driver look for the dll in the same directory as the
> embedded database?
to do is to specify directory with jaybird.dll in the java.library.path
system property. By default, java.library.path equals to the %PATH%, but you
can do something like this:
java -Djava.library.path=<path_to_jaybird.dll>;%PATH% -classpath ...
And, note, fbembed.dll is loaded from the PATH (not java.library.path).
In theory driver could load library from the place specified in properties
(and I also started to work on this solution), but there are some internal
issues that must be solved first, so that solution will not appear in the