Search code examples
javaoracle-databasejvmwebserverjvm-arguments

Prevent Java plugin from attempting to download pack.gz version of the archive


The Java 1.7 Plugin insists on attempting to download the pack.gz for the archive file specified. E.g. for an applet tag like this:

<applet codebase="." code="com.whatever.Something" archive="applet/SomethingWhatever.jar" mayscript="true">
<param name="someKindOfSettingA" value="1234">
</applet>

We end up with the HTTP server getting requests for:

applet/SomethingWhatever.jar.pack.gz

I realize we can solve this by providing a pack.gz and this would be beneficial. But for now I just want to suppress the extra requests. Is there a way to do this via an applet tag or something?

We tried this:

<PARAM NAME="java_arguments" VALUE="-Djnlp.packEnabled=false"/>

based on the obvious variation of the instructions here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/tools/pack200.html . But that made no difference.


Solution

  • This is a JRE bug:

    See https://bugs.java.com/bugdatabase/view_bug?bug_id=8000291

    Regards Kamil