Cannot get nsIDOMDocument

Carfield Yim <[email protected]>
Newsgroups gmane.comp.mozilla.devel.oji
Organization http://groups.google.com
Message-ID <[email protected]>
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
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.