The magic value of a valid Java class is 0xCAFEBABE
, which is the hex value of 3405691582
. This is represented by the first 4 bytes of the file. But you're getting 218774561
which in turn stands for the ASCII characters CR
, LF
, <
and !
(the CRLF is a newline). To see it yourself, run this piece of code:
int magic = 218774561;
ByteBuffer b = ByteBuffer.allocate(4);
b.putInt(magic);
System.out.println(new String(b.array()));
This in combination with the applet being served by a website suggests that it's the start of a <!DOCTYPE>
which in turn suggests that it's a HTML document.
So, the request to Evolution.jar
has apparently actually returned a HTML document. You should be able to see it yourself when you change the current request URI in browser address bar to point to applet's URL (e.g. change /page.html
in end of URL to /Evolution.jar
). Then you'll see what the browser actually retrieved when it tried to download the applet. Perhaps it's a simple HTTP 404 error document.
To fix it, just make sure that the URL in the archive
attribute is correct. It's relative to the current request URL as you see in browser address bar.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…