It sounds as if you have a Roulette class in a package called Roulette (that's what "wrong name: Roulette/Roulette" hints at), while the code attribute of the applet tag specifies that the Roulette class is not in any package. If the class actually is in a package called Roulette, use code="Roulette.Roulette".
somewhere I read that "Incompatible magic value" can happen because of the JRE.
I'm using jre1.6 and the code was compiled using 1.4 - so probably I should compile it with jre1.6 ?
Thank you for the previous reply!
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
No, there should be no need to recompile. Anything compiled with 1.4 is usable with 1.6. The other way around it wouldn't work.
But this is a different error message anyway. I'm guessing that the jar file you uploaded is corrupt (maybe you used FTP in ASCII mode instead of binary mode?). Download the jar file to your machine and see if a ZIP utility can open it.
Alex Grakoff
Greenhorn
Joined: Mar 11, 2008
Posts: 8
posted
0
Hi Dear Ulf!
the jar if OK.
it is not corrupted, and in fact I can start it locally (without webserver)
Locally: i.e. there is an .html file and .jar in the same dir.
HTML:
So, when I open HTML - Applet is loaded correctly.
When I try to open it via webserver, I got:
Incompatible magic value 1008813135
where can I have a look to solve that problem?
Thank you in advance!
Alex Grakoff
Greenhorn
Joined: Mar 11, 2008
Posts: 8
posted
0
besides, if the file had beed corrupted, I think it wouldn't loaded.
but it loads correctly on my PC.
btw: I test everything on my local PC. i.e. Webserver is on my PC.