Subject Re: [Firebird-Java] help on embeded java - still having problems - well solved
Author Nikolay Ivanchev
Actually this is what I done
at the begining of the program I added
String jlp = System.getProperty("java.library.path");
String ud = System.getProperty("user.dir");
System.setProperty("java.library.path",jlp+";"+ud+";.");
Now it looks in the directory where it is started for .dll's
They are jaybird.dll and fbembed.dll - and everything works.. almost fine
When I have a lot of INSERTS it freezes. I will investigate tommorow
This weekend I will try to compile it under linux and try to get it working
there
LD_PRELOAD_LIB should do the trick I hope for finindg libs



> Hi
>
> >Actually I was reading the docs - they say rename it to gds32.dll
>
> I think this is an 'easy' way to get an application to use the embedded
> server without having to modify the application. Jaybird will actually
look
> for fbembed.dll when you ask it too work in embedded mode. If you ask it
too
> work in type 2 mode it will look for fbclient.dll first and failing that
> gds32.dll.
>
> What we can tell from the exception is that it is the call to win32's
> LoadLibrary function that is failing. This will most likley be due too a
> failure to find fbembed.dll itself or a failure to load fbembed.dll due to
> one of its dependancies missing. You may want too ensure that
'msvcp60.dll'
> is available to your app(either in System32 or alongside fbembed.dll)
>
>
> >Still I am fighting with logging - may be it will tell me what is the
> >problem - finding or loading embedded dll.
> >
> >How to enable logging
>
> I'm afraid I do not know for sure what might be causing this problem - I
> assume you mean when running the tests via build.xml. When I run these
tests
> I get test.log in {jaybird_sourcetree_root}/output/log. Because this just
> works for me I have never been too concerned about it and thus do not know
> what could cause it not to be generated.
>
> If running through your own app maybe you need to configure the log4j
> system. A simple way would be to do
>
> BasicConfigurator.configure();
>
> This I beleive would then enable logging to the console by default. or
>
> PropertyConfigurator.configure(loggingConfigFileName);
>
> to load a logging configuartion file.
>
>
> Perhaps somone else might have a better idea regarding this ?
>
>
> Hope this helps
> Ryan
>
>
>
> 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/
>
>
>