Mac OS X: java.lang.ClassNotFoundException: com.sun.java.browser.plugin2.DOM
Posted
by
Thilo
on Stack Overflow
See other posts from Stack Overflow
or by Thilo
Published on 2011-01-05T09:31:43Z
Indexed on
2011/01/05
10:53 UTC
Read the original article
Hit count: 312
I am trying to use the new LiveConnect features introduced in Java 6 Update 10.
Code looks like this (copied from the applet tutorial):
Class<?> c = Class.forName("com.sun.java.browser.plugin2.DOM");
Method m = c.getMethod("getDocument", java.applet.Applet.class);
Document document = (Document) m.invoke(null, this);
But all I am getting is a ClassNotFoundException for the entry-point class.
This on the Mac, 10.6, with both Firefox and Safari.
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04-307-10M3261 Java HotSpot(TM) 64-Bit Server VM
Is this not implemented on the Mac? Or do I need to configure something?
All I need to do is get and set the value of form elements on the page, so I would be fine with an older (pre-6u10) API if that works better.
© Stack Overflow or respective owner