I am having a problem putting a java applet on a website using Dreamweaver CS5.
This is the page where I am having the problem:
http://www.typingsquad.com/employment.html
This is a picture of what I see in dreamweaver:
http://i895.photobucket.com/albums/ac157/daltonward1/javaAppletProblem.png
Based on what I have read on the internet, I have tried the three following methods, but only one has worked.
First, I tried putting the applet on the webpage by using media-applet. The picture posted shows how I tried to implement that. However, as you can see on the website when viewing the first box, it states that there is an error.
“java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file Calculator/html”
I’ve done some reading on this error, but I cannot find a solution.
The second thing I tried is using an IFrame using the direct link of the html file on the server. As you can see, all that appears is a blank box.
The third thing I tried using was a hyperlink, which actually did work. No errors, but its not the effect I was going for.
Does anyone see anything wrong with my use of Iframe and/or applet on dreamweaver?
Could it be that my files aren’t grouped together right on the server?
I’m really into writing Java applications and applets, but my friend just got into web development and has asked me to write some simple programs for him. Any help will be greatly appreciated and sorry if my questions could have been simply found else where as I am still new to computer programming as well.
Thanks,
James Ward
This means the JRE is asking for a class but getting an HTML page (probably stating ‘404, resource/page not found’) that starts with
<htm. More details on the answer at the OTN.Now I look at the source and see:
I realize it is because the page is specifying an HTML instead of a class in the
codeattribute. These things do not work by magic, you need to have some idea of what you’re doing if you hope to deploy an applet successfully.If http://www.typingsquad.com/Calculator.html works as you expect, the fix will be to change the
appletelement in the original page to..I am guessing the
codebaselisted in the original HTML is an artifact of your development environment. If not, you will need to add that, but if that is the case, I would strongly recommend using only directories names with: