English 中文(简体)
带有自定义进度的JNLP-在显示进度之前加载小程序类
原标题:JNLP with Custom Progress - loads applet classes before displaying progress

我有一个JNLP,它指定了许多资源jar。其中一个是download=“progress”,以便在加载其他资源jar时显示自定义进度条。进度会按预期找到并显示,但它会等待显示进度,直到其他四个罐子也被加载(这些罐子是3MB)之后。然后,它显示了我希望进度jar首先加载的其余资源(另外4MB)的进度,并在开始下载主jar和任何依赖jar之前显示。加载的jar似乎包含“主”jar直接引用的类,而进度jar只有几KB,并且对资源中的任何其他jar都没有依赖项/导入。

有没有办法将JNLP配置为首先只下载进度jar并显示它,然后获取其余资源?

问题回答

默认情况下,所有资源都会被急切地下载;

So have you tried this: specify "lazy" on all your other .jars Then maybe the download="progress" one will get preference and be downloaded first. Also try putting the progress one first in the list.

此处的一些示例:http://download.oracle.com/javase/6/docs/technotes/guides/jweb/customizeRIALoadingExperience.html

还有一个属性jnlp.concurrentDownloads,您可以对其进行调整,并可能产生效果。请参阅http://download.oracle.com/javase/6/docs/technotes/guides/jweb/riaJnlpProps.html





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签