I'm embedding a Java applet like this:
<object type="application/x-java-applet">
<param name="codebase" value="/path/to/jar" />
<param name="archive" value="myapplet.jar" />' +
<param name="code" value="my.package.MyClass" />
</object>
The applet works fine in all browsers but Webkit browsers (Chrome and Safari) are both annoying the server with a useless request which tries to download the MyClass file (Which is in the JAR and works fine from there) from the server:
Chrome shows this error in the console:
GET http://localhost/test/my.package.MyClass 404 (Not Found)
The same happens when using the <embed>
tag instead of <object>
but it doesn't happen when using the deprecated <applet>
tag.
Is there a possibility to prevent this class file downloading somehow? I heard rumors about a codebase_lookup
parameter but setting this param to false
doesn't change anything.
deployJava.js
for writing the applet/object element. – Birdseed