JNLP file limit...
Hi,
I am using Java Web Start to distribute an application that use the JAI api. I have created 2 separate JNLP file, one for my application and one for the JAI stuff.
My application and the JAI JNLP look like this (I have edited some stuff for security reason...).
This one work fine on my station if I comment the JAI downloading stuff, as JAI is already on my station, so I include it just in case and since I myself search a lot for it, so that someone may find it usefull...
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP Filefor PLNSPooler Client Application -->
<jnlp spec="1.5+" codebase="http://servername/PLNSpooler/" href="plnspooler.jnlp">
<information>
<title>PLN530 Drawing Spooler</title>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" java-vm-args="-esa -Xnoclassgc"/>
<jar href="download/Client.jar"/>
<jar href="download/PLN_Core.jar"/>
<jar href="download/log4j-1.2.8.jar"/>
<jar href="download/log4j_extension.jar"/>
<extension name="JAI" href="http://servername/JAI/jai.jnlp"/>
</resources>
<application-desc main-class="util.spooler.Client">
<argument>bla bla bla</argument>
<argument>bla bla bla</argument>
</application-desc>
</jnlp>
Now this is the one that is giving me some troubles... The "jai_windows-i586.jar" jar is really just a shell for the JAI installer as I could see opening the file. And it's a little over the 5 meg size.
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP Filefor Java Advance Imaging -->
<jnlp spec="1.0+" codebase="http://servername/JAI/" href="jai.jnlp">
<information>
<title>Java Advance Imaging</title>
<vendor>Sun Microsystems, Inc.</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<extension href="download/jai_windows-i586.jar"/>
</resources>
<component-desc/>
</jnlp>
When JWS is up to this (just above) JNLP (called from my application JNLP), it appear that the jar file "jai_windows-i586.jar" is "too big" for JWS. When I try to download the application, when at the point of getting that specific jar (as I can see in the status display) I get the following error:
An error occurredwhile launching/running the application.
Title: Drawing Spooler
Vendor:
Category: Unexpected Error
File too large
With the following exception:
java.io.IOException: File too large
at com.sun.javaws.jnl.LaunchDescFactory.readBytes(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I tried using the size attribut to the extension element using size="5482423" where this size is the actual size in byte as reported by Window for the file. But still it did not work.
Researching this here, I found someone else with a similar problem (2 years ago), but no answer. I am hopping someone will have an answer for me now...
Thank you in advance.

