[Bug 3587] New: javaws add all JAR files embeeded inside JNLP references JAR file to the JNLP classpath
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Thu May 10 13:03:17 UTC 2018
https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3587
Bug ID: 3587
Summary: javaws add all JAR files embeeded inside JNLP
references JAR file to the JNLP classpath
Product: IcedTea-Web
Version: 1.7
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: NetX (javaws)
Assignee: jvanek at redhat.com
Reporter: robert at marcanoonline.com
CC: unassigned at icedtea.classpath.org
Version: icedtea-web-1.7.1
When a JAR file referenced on a JNLP file embeds another JAR file, it adds the
embedded JAR file to the JNLP classpath. The only possible workaround is to
change the extension of the embedded JAR to something different than .jar.
You may ask why a JAR file embeds another JAR file, this is the use case:
A JNLP based application (with full permissions) need to link to locally
installed LibreOffice jars. The LibreOffice jars can not be added to the JNLP
file becausr they are permissions version specific.
So what do you do? Use an URLClassLoader class loader to open those JARs, this
works perfectly, but this way you may not have code on the JNLP that links to
LO classes because the JNLP class loader can not inherit from the
URLClassLoader you just created. You resort to pure reflection, which is
painful or create some kind of plugin interface that you implement on an
embedded JAR.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180510/3a41fcc1/attachment.html>
More information about the distro-pkg-dev
mailing list