RFC: Bug in JNLPClassloader when using nested jars

Omair Majid omajid at redhat.com
Mon Jun 29 13:26:29 PDT 2009


Hi,

The attached patch fixes a bug in JNLPClassloader that occurs when 
JNLPClassloader tries to load nested jars in nested directories.

To reproduce the issue:
$ javaws http://dnld0.sparkom.com/sparkangels/sangels/sparkangels.jnlp
[snip]
Caused by: java.lang.NoClassDefFoundError: sparkangels/vb
         at com.sparkom.launcher.Main.main(Unknown Source)
         ... 6 more
[snip]

ChangeLog:
2009-06-29  Omair Majid  <omajid at redhat.com>

     * rt/net/sourceforge/jnlp/resources/Messages.properties:
     Add RNestedJarExtration.
     * rt/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
     (activateJars): Create any needed subdirectories for nested jars.

Any suggestions?

Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netx-nested-jar-parent-directories.patch
Type: text/x-patch
Size: 1634 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090629/befed452/netx-nested-jar-parent-directories.patch 


More information about the distro-pkg-dev mailing list