java.library.path and "can't find dependent library"

"CleverMindworks" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <[email protected]>
Hello,

I have begun looking into the webclient API. It seems quite nice for my
needs. However, I have begun stumbling over some issues with Netbeans
and using the webclient.  In this case, I'm printing out the value of
java.library.path to the console when I perform my tests.

In a nutshell, these are the facts:

- Test browser runs fine from console (by running ant against
build.xml)
- Without setting java.library.path, I run the app. It complains of "No
webclient found". The value for java.library.path is what is on the
system PATH variable.
- I stripped the trailing ";;" from my system path prior to running (I
read somewhere that trailing empty values may confuse the JVM)
- Running my simple client from the IDE with JVM parameters:

  -Djava.library.path='C:\Program Files\mozilla 1.7'

  The resulting error was "Can't find dependent library".  Printing the
java.library.path yields soley: C:\Program Files\mozilla 1.7
- With a file monitor enabled, I can see it successfully finding
webclient.dll. The problem is when the java.exe process is searching
for xpcom.dll.  Ironcially, it is in the same folder as webclient.dll.

So, I am at a loss.  There do seem to be a couple of vars set in
build.xml, but I'd like to see if anyone else has some ideas.

Best regards,
-Sean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.