Subject | Re: [Firebird-Java] Re: Problems with embedded java |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-09-25T16:37:08Z |
> 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 ...
com.myapp.Main ...
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
nearest future.
Roman