I have an applet on my angelfire site. it has worked fine since last june. Suddenly for no reason it wont load. IE says ClassNotFoundException. Netscape says Applet goURL error: java.lang.ClassFormatError:Bad magic number It is still listed as a 2k file right where it has always been. Could it be just my browsers??? It is the small applet repeated about 6 times on the left side of the page at http://www.angelfire.com/games2/programming it should display a Choice.
Hi Randall According to the java docs ClassFormatError(bad magic number)is thrown when the JVM attempts to read a class file and determines that it is malformed or cannot be interpreted as a class file. I had a similar problem and when I recompiled the source and replaced it, it got solved. Hope it helps. Regards Suneel
thanks suneel, I was thinking I should try uploading it again. that is what I will do. This is frustrating. I uploaded it and it did replace the old file but doesnt work. I even tried deleting it and then uploading it again. It works fine from a local folder on my HD. The alt text is not even being displayed. I could try letting angelfire know but that is probably a waste of time. however the other 2 applets on the page work! The other 2 applets are both archived in jar files and this one is just one file. I wonder if that means anything?
[This message has been edited by Randall Twede (edited January 28, 2001).]
i visited your web site and wanted to learn the coding for the gif (animals) inside an applet and how they can be selected and displayed. can you tell us what are the steps that you took. one is that we have a listener that responds to the particular animal selected via the dropdown menu, and displaying or painting the appropriate gif image on the right hand side canvas. right ?? can you help me break down the problem (preferable in steps) so then i can start coding. first i need to comprehend the problem at hand. would appreciate, if you or others who could help me with this one.
You didn't upload using FTP (or the Windows Explorer window corresponding to FTP) did you? In the Microsoft world, the default for FTP is text mode, which can do horrible things to ZIP (jar) files and other binary entities - it tries to convert what it thinks as end-of-line characters found in the file.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 18 years ago
upload ? upload what ?
Originally posted by Tim Holloway: You didn't upload using FTP (or the Windows Explorer window corresponding to FTP) did you? In the Microsoft world, the default for FTP is text mode, which can do horrible things to ZIP (jar) files and other binary entities - it tries to convert what it thinks as end-of-line characters found in the file.
I think Tim's asking Randall if he uploaded the applet to the web server using FTP, and the possible problems there...
Randall, the problem may also lie on the web server... lots of "free web space" servers do alot of invisible manipulations behind the backs of the users...
As an example, I used to run my website on fortunecity... everything was peachy for awhile, and then I started getting fortunecity "cannot load" images for all my images... FortuneCity's FAQ said that cookies had to be turned on for images to work correctly... cookies were on, but whatever fortunecity was trying to do wasn't making it through the fire wall...
So it could be some kind of redirect thing that angelfire is doing...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!