Cannot get nsIDOMDocument

Carfield Yim <[email protected]> Thu, 07 Jun 2007 15:49:26 -0000
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <1181231366.091751.4760__47391.2523863421$1181231421$gmane$org@n15g2000prd.googlegroups.com>
I try to get the DOM tree using following code:


					Mozilla.getInstance().initialize(new File("c:\\tools\
\xulrunner"));
					final nsIWebBrowser webBrowser = (nsIWebBrowser)
browser.getWebBrowser();
					final nsIDOMWindow contentDOMWindow = webBrowser
							.getContentDOMWindow();
					final nsIDOMDocument doc = contentDOMWindow.getDocument();
					System.out.println(doc);

However I get the following exception:

org.mozilla.xpcom.XPCOMInitializationException: Could not load
org.mozilla.xpcom.internal.* classes
	at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:664)
	at web2scorm.MainScreen$1.mouseDown(MainScreen.java:45)
	at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
178)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at web2scorm.MainScreen.main(MainScreen.java:72)
Caused by: java.lang.ClassNotFoundException:
org.mozilla.xpcom.internal.MozillaImpl
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:647)
	... 7 more


Where can I download the jar contain
org.mozilla.xpcom.internal.MozillaImpl ??

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