|
From: Leif M. <le...@ta...> - 2003-04-24 15:12:14
|
Bill,
Does the DB2 driver have a native library that it is loading? I
noticed that
in your batch file you are not specifying a library path. This means
that the
JVM will be using its default library path.
In the case of the Wrapper, you are specifying a library path of
"../lib".
Most likely that is where your Wrapper.DLL file is located. If you want to
run the exact same command in your batch file as is used by the wrapper,
you should copy the exact command from the Wrapper debug output into
a batch file and then remove the -Dwrapper.key property.
Give that a try. I bet you will find that you get the same failure.
If so,
figure out where the DB2 native libraries are located and add them to
the library path. My guess is that that will fix things for you. (I am
going
off of memory about the DB2 driver having a native component. Let
me know if I am wrong.)
You can see any native calls by adding the -verbose:jni argument to
the JVM when you launch it. It doesn't tell you where the DLLs are
located however.
Cheers,
Leif
|