I am trying to load an Applet but ended up with this error:
java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file
I placed the HTML and the Test.class
file in the same folder, internal
.
<applet code="Test.class" align="Top" width="75%" height="25%" >
When I try to download class file myself, using the URL http://www.xxxxxxxxx.com/internal/Test.class
it is successfully downloading and I am able to decompile it.
I have already tried
- clearing Temporary Internet Files in Java Control Panel
- clearing the browser cache
Edit:
The same applet runs fine if I we are accessing from ‘http://www.test.com’ and it’s failing to load we try to access from ‘https://www.test-1.com’ here ‘www.test.com’ and ‘www.test-1.com’ are pointing to same server and a single code base. i.e two url’s pointing to same IP in DNS.