Thomas Jollans said:
...
It was introduced with JDK 1.2,
Do I feel an _absolute idiot_ or what, Thomas!
After my response to you moments ago
I thought harder about this question and
realised I _did_ have a 1.1VM handy
in NN4.78 (I do cross browser testing)
So _I_ tried it [ ..took a dose of my
own medicine ;-) ].
[ Oh, and look, sorry.. I don't actually know
enough about threading to help with _your_
question.. ]
Result (for those interested)
____________________________________________
Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
java.lang.NoClassDefFoundError: javax/swing/JFrame
at java.lang.ClassLoader.defineClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.findClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at Launcher.init(Compiled Code)
* at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled
Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
____________________________________________
Using target 1.1 will happily claim to work
in compiling Swing, introduced in 1.2 (thanks
Thomas) back to 1.1, but then fails when loading.
Somebody was saying recently that the 'target'
option of javac was not what most people
took it to be*, but I was not entirely convinced
until now.
* Ensuring you do not use classes and class
members introduced after a particular Java
version.
Eh. Oh well. It would be nice to have some
tool that _does_ do that.