Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-03 Thread Pete Brunet
Thanks David, I did indeed have a typo. My java.ext.dirs isn't null but C:\OpenJDK-b96m\jdk7\build\windows-i586-fastdebug\lib\ext;C:\WINDOWS\Sun\Java\lib\ext and I did have the required jar file in that directory so I suppose I should still try to figure out why using AWTEventMonitor from a jar ca

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-03 Thread David Schlosnagle
On Wed, Aug 4, 2010 at 12:12 AM, Pete Brunet wrote: > The failure is on this line of code: > AWTEventMonitor.addFocusListener(this) > which resides in ...\classes\sun\awt\windows\accessibility > > AWTEventMonitor is a class in jaccess-1_4.jar which is in lib/ext > > However, just before the failin

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-03 Thread David Holmes
Peter, This kind of problem is why the ContextClassLoader was introduced. Anytime you have a SPI where the core libs needs to find a (potentially) externally defined concrete implementation, the bootstrap loader can't find it, so the context loader has to be set and used - generally to jump b

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-03 Thread Pete Brunet
The failure is on this line of code: AWTEventMonitor.addFocusListener(this) which resides in ...\classes\sun\awt\windows\accessibility AWTEventMonitor is a class in jaccess-1_4.jar which is in lib/ext However, just before the failing line is executed, a println shows these two system properties j

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-02 Thread Pete Brunet
The class loading info wasn't helpful. If I run jdb I get the log shown below. So far the debug info isn't making sense. Hopefully it will tomorrow :-) If someone can decipher this from the log that would be helpful. Exception occurred: java.lang.NoClassDefFoundError (to be caught at: com.sun

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-02 Thread Pete Brunet
Hi David, I didn't get any output at all from that one - though it appears to be a valid parameter as it didn't result in an error message. -Pete David Holmes wrote: > Peter, > > Try adding -XX:+Verbose to get extra info > > David > > Pete Brunet said the following on 08/03/10 02:57: >> Thanks Da

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-02 Thread David Holmes
Peter, Try adding -XX:+Verbose to get extra info David Pete Brunet said the following on 08/03/10 02:57: Thanks David, Those options tell me which classes were succesfully loaded but not what classes the class loader was trying to load when the class loader was attempting to load SwingEventMon

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-08-02 Thread Pete Brunet
Thanks David, Those options tell me which classes were succesfully loaded but not what classes the class loader was trying to load when the class loader was attempting to load SwingEventMonitor. Is there a way to get a deeper dump while a particular class is being loaded? -Pete David Holmes wrot

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-07-30 Thread David Holmes
Try -verbose:class or -XX:+TraceClassLoading HTH David Holmes Pete Brunet said the following on 07/31/10 07:53: This blog post has been helpful to at least start the investigation: http://www.jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffounderror However,

Re: NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-07-30 Thread Pete Brunet
This blog post has been helpful to at least start the investigation: http://www.jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffounderror However, I haven't found anything yet similar to the cases discussed in the blog entry. Since SwingEventMonitor was last upda

NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor

2010-07-29 Thread Pete Brunet
What is the correct way to fix this? Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/java/accessibility/util/SwingEventMonitor at sun.awt.windows.accessibility.AccessibleContextMirror.(AccessibleContextMirror.java:583) This class lives in jaccess-1_4.jar whi