T
taylorius
I have an applet, which processes a data file.
Depending on the contents of that data file, certain classes of that
applet
will be needed, or not. Furthermore, I want to mimize the size of the
applet by tailoring it to a particular data file, including only the
classes that will actually be used by that data file in the jar.
No problem I hear you say, just instantiate the class on a contitional
and away you go. Well, on a pc (ms and sun jvms) this is true. But on
the Apple Mac (who would've thought it!) referring to a non-existant
class anywhere, causes an exception as soon as the referring class is
instantiated, even if the problem code would never be executed.
So I'm wondering if anybody can think of an easy way to do this. I
suppose I could use reflection, but it seems like overkill.
Many thanks for any ideas
Matthew Taylor
Depending on the contents of that data file, certain classes of that
applet
will be needed, or not. Furthermore, I want to mimize the size of the
applet by tailoring it to a particular data file, including only the
classes that will actually be used by that data file in the jar.
No problem I hear you say, just instantiate the class on a contitional
and away you go. Well, on a pc (ms and sun jvms) this is true. But on
the Apple Mac (who would've thought it!) referring to a non-existant
class anywhere, causes an exception as soon as the referring class is
instantiated, even if the problem code would never be executed.
So I'm wondering if anybody can think of an easy way to do this. I
suppose I could use reflection, but it seems like overkill.
Many thanks for any ideas
Matthew Taylor