Hey everyone I am making my first applet for java today. I have been using a subdomain at a server and I don't know what to do because I am getting this really weird error.
I have my jar in the server and everything but every time I try to load the Applet this happens.
java.lang.ClassFormatError: Incompatible magic value 218774561 in class file Evolution/EvolutionApplet
The original problem seems fixed now. I could download the Jar from http://dementedgames.site88.net/Evolution.jar
It seems the
Evolution.Evolution class is not an applet! Running it from the command line using:
java -jar Evolution.jar
Produces a frame (with a very 'retro' look)! As such, forget this applet nonsense, and launch the frame from a link using Java Web Start.
OTOH it now throws a
ClassNotFoundException that (after inspecting the Jar) makes me think it should be:
<html> <head> <title>Evolution</title> </head> <body bgcolor="#000000" text="#906060"> <center> <applet code="Evolution.Evolution" archive="Evolution.jar" width="800" height="600"> </applet> </center> </body> </html>
There are two changes to the
code attribute worth noting.
.classextension was removed. A minor matter, adding it is tolerated, but not correct.
Appletremoved from the class name.