Subject RE:Problems with embedded java
Author Elizabeth A. Sommers

While this is a reasonable solution for people who do their compiling on the command line, it is not a reasonable solution for people who are using ide's, or who compile with ant or maven.

I would be happy to work with you on different search strategies for these libraries. Both dll's should be somewhere easily configured by either being placed in the same directory as the database or reachable from a properties file (the better solution for jaybird.dll.

You can't consider this embedded code unless all pieces of it are embedded.


> Is there any possible way to embed everything into one directory?
> Maybe have the driver look for the dll in the same directory as the
> embedded database?

Driver tries to load library by name, not by path. The only thing you have
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.



Yahoo! Groups Links


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