An application I am writing needs a bunch of images (gif-pictures)
that I have encapsulated in a class named "Images".
The pictures are stored here as raw data in an byte-array. A static
initializer creates Java-Image-objects from that byte-array.
The data for all images has the size of 13kB -- the compiled
class-file is 200kB large. The whole thing works fine as an
application.
Now the problem:
If I try to start the program from an applet (a button launches
the main-frame of the application), a VerifyError occurs when
the Images-class is loaded:
java.lang.VerifyError: gedo/dbgui/Images
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java)
at java.applet.Applet.resize(Applet.java:173)
at sun.applet.AppletPanel.run(AppletPanel.java:273)
at java.lang.Thread.run(Thread.java)
If the size og the Image-class is reduced by removing some of the
pictures the applet works! So the class seems to be too big, but why?
Does anybody know how large a class, used by an applet can be?
And why that `VerifyError'? The API-docu says:
VerifyError:
Thrown when the "verifier" detects that a class file, though well formed,
contains some sort of internal inconsistency or security problem.
May it be a security-problem?
Thnx for your help.
(BTW: I use jdk1.1.1 on Linux)
Thomas