[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] COM usage example
From: |
Gennady Telegin |
Subject: |
[Swarm-Support] COM usage example |
Date: |
Tue, 29 May 2007 01:10:35 +0400 |
User-agent: |
Thunderbird 2.0.0.0 (X11/20070326) |
Hi,
I have try work with demo from here:
http://ftp.swarm.org/pub/swarm/src/testing/COM/COMdemo-0.0.tar.gz.
I have exec in ./demo/ subdirectory:
export S=/usr/local/src/firefox-1.5.0.7
export B=/usr/local/src/firefox-1.5.0.7
I have changed all paths in code to correct values and ran:
make && make install
then, copy swarmdemo.jar to the
/usr/local/firefox-1.5.0.7/lib/firefox-1.5.0.7/chrome/
and swarmdemo.xpt to the
/usr/local/firefox-1.5.0.7/components/
and run /usr/local/firefox-1.5.0.7/bin/firefox .
In XPCOM Component Viewer I see only swarmIAgent.
If I open testgui.html or test.html, then do nothing.
I was pasting some alerts in Java Script code and conclude, that Java
Script stop after first string:
var env =
Components.classes["urn:swarm:SwarmEnvironmentImpl"].
createInstance (Components.interfaces.swarmISwarmEnvironment);
i.e., it didn't find Swarm components. I think it right behaviour,
because I didn't load any COM components (how???).
Question: How set to work this example and are there any other examples
of usage COM with Swarm (I found only COMdemo on the site) ?
Best regards,
Gennady
- [Swarm-Support] COM usage example,
Gennady Telegin <=