Does this work for anyone locally? I’m finding that if I have
<applet width="640" height="480" code="a.class">
<param name="cache_archive" value="grav4k_1v3.jar" />
</applet>
it loads from the jar fine, but if I have
<applet width="640" height="480" code="a.class">
<param name="cache_archive" value="grav4k_1v3.jar" />
<param name="java_arguments" value="-Djnlp.packEnabled=true" />
</applet>
I get error messages
java.lang.ClassNotFoundException: a.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /tmp/pack200/a/class.class (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:469)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
... 6 more
I am boggled at -Djnlp.packEnabled=true causing it to interpret the 's code attribute as a fully qualified name rather than the name of a class file. Replacing it with code=“a” doesn’t help: it looks for a file /tmp/pack200/a.class and ignores /tmp/pack200/grav4k_1v3.pack.gz
(Java 1.6.0_15 64-bit on Linux; errors obtained equally via plugin in Firefox and via appletviewer).