<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks David, I did indeed have a typo. My java.ext.dirs isn't null but<br>
C:\OpenJDK-b96m\jdk7\build\windows-i586-fastdebug\lib\ext;C:\WINDOWS\Sun\Java\lib\ext<br>
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
causes the NoClassDefFoundError. I suspect I won't look any further
though since I need to eventually merge the classes of that package
into the JDK anyway - and that fixes the problem, i.e. putting them
into the classes directory.<br>
<br>
Pete<br>
<br>
David Schlosnagle wrote:
<blockquote
cite="mid:AANLkTikLB6xpSBSNkvSj=ZRGUmAhFaRdgxJfKBTjeM_Q@mail.gmail.com"
type="cite">
<pre wrap="">On Wed, Aug 4, 2010 at 12:12 AM, Pete Brunet <a class="moz-txt-link-rfc2396E" href="mailto:peter.brunet@oracle.com"><peter.brunet@oracle.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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
java.ext.dir: null
java.class.path: \Program
Files\Java\jdk1.6.0_20\demo\jfc\SwingSet2\SwingSet2.jar
so that seems to explain why a class in a jar in lib/ext won't be found
(unless there is some other internal means being used to find jar files).
Since I suspect I'll eventually merge this package into the jdk, to continue
debugging I extracted the jar into the classes directory.
</pre>
</blockquote>
<pre wrap=""><!---->
Pete,
I'm not sure if you just have a typo, but the system property for
specifying alternate extension directories is "java.ext.dirs" [1], and
it can be a list of directories delimited by the
java.io.File.pathSeparatorChar (';' on Windows, ':' on Unix).
[1]: <a class="moz-txt-link-freetext" href="http://download.oracle.com/javase/6/docs/technotes/guides/extensions/spec.html#installed">http://download.oracle.com/javase/6/docs/technotes/guides/extensions/spec.html#installed</a>
- Dave
</pre>
</blockquote>
</body>
</html>