Hi

I'm experimenting with embedding mozilla webclient in Java. I'm using
Webclient 2.0 Alpha 9 with XULrunner 1.8.13 with JDK 1.6.0_02 in
Windows XP. I followed instructions in this page

http://www.mozilla.org/projects/blackwood/webclient/release-notes/2_0_alpha_9-detail.html#BIN_INSTALL

As directed, I copied webclient to "c:\webclient_2_0_a9" and xulrunner
to "c:\webclient_2_0_a9\xulrunner".
I have changed my PATH variable to include my xulrunner directory as
"C:\webclient_2_0_a9\xulrunner". I'm able to run the test webclient
built using the netbeans project. However when I try to run the same
Test webclient, from non-ide built.xml file, things don't work.

These is how the test webclient is run. Note that java.library.path=C:
\webclient_2_0_a9\xulrunner

    [java] Executing 'C:\Java\jdk1.6.0_02\jre\bin\java.exe' with
arguments:
    [java] '-DNSPR_LOG_MODULES=webclient:4,webclientstub:4,pluglets:4'
    [java] '-DNSPR_LOG_FILE=C:\webclient_2_0_a9\non-ide\build
\webclient.log'
    [java] '-Dbuild.test.results.dir=C:\webclient_2_0_a9\non-ide\build/
test/results'
    [java] '-DBROWSER_BIN_DIR=C:\webclient_2_0_a9\xulrunner'
    [java] '-Djava.util.logging.config.file=C:\webclient_2_0_a9\non-ide
\logging.properties'
    [java] '-Djava.library.path=C:\webclient_2_0_a9\xulrunner'
    [java] '-classpath'
    [java] 'C:\webclient_2_0_a9\lib\webclient-2_0_a9.jar;C:
\webclient_2_0_a9\non-ide\build\classes;C:\webclient_2_0_a9\non-ide
\build\test\classes'
    [java] 'org.mozilla.webclient.test.TestBrowser'
    [java]

I get this error

[java] Exception in thread "WebclientEventThread"
java.lang.UnsatisfiedLinkError: no webclient in java.library.path
     [java]     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:
1682)
     [java]     at java.lang.Runtime.loadLibrary0(Runtime.java:823)
     [java]     at java.lang.System.loadLibrary(System.java:1030)
     [java]     at
org.mozilla.webclient.impl.wrapper_native.WrapperFactoryImpl.loadNativeLibrariesIfNecessary(WrapperFactoryImpl.java:
310)
     [java]     at
org.mozilla.webclient.impl.wrapper_native.NativeEventThread.run(NativeEventThread.java:
158)


I did some search and found this: 
http://osdir.com/ml/mozilla.devel.java/2005-08/msg00001.html
According to him, he had the same issue and he solved it by setting
the correct PATH variable.

I'm confident my PATH variable is set correctly and verified it. The
error seems to occur when

System.loadLibrary("webclient") is called in
org.mozilla.webclient.impl.wrapper_native.WrapperFactoryImpl?

So how is this working in netbeans and not from command prompt or ant?
How is netbeans locating the library correctly using the same code and
PATH?

Please let me know if there is a solution or workaround to this issue.
I will happily volunteer to change the example in the distribution if
we can figure out a good solution and end this issue.


Thanks
Babu

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to