So the problem is that an error occurs when i make an instance of JPanel that draws the image...Absolutely not. It does not get there at all. If you convert the reported magic number to hex, you obtain 4 bytes that correspond to the following 4 characters:
This indicates that what you receive instead of the class file is most likely a HTML page containing an error.
0x0D (CarriageReturn), 0x0A (LineFeed), <, !
947751 wrote:Repeat what I said for appletImage$imagePanel.class. This is another .class file resulring from the compilation of imagePanel.java. Is it there on the web server?
i did what you say and i have the same problem!!
java.lang.ClassFormatError: Incompatible magic value 218774561 in class file appletImage$imagePanel
947751 wrote:Probably because you did not copy the inner class class file to the distribution directory.
Thank you very much buftos!! The error was that the class imagePanel was implemented inside appletImage class.When i made a separated file called imagePanel.class the error disappeared !!But why the server couldn't see imagePanel when it was implemented inside appletImage?