gpt4 book ai didi

java - 在 JNLP 中指定 'package' 属性有什么好处?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:20:07 25 4
gpt4 key购买 nike

我注意到您可以指定 <package /> JNLP 中的属性如下所述: http://lopica.sourceforge.net/ref.html#package

与让 applet 类加载器完成工作相比,显式定义它们有什么优势?

最佳答案

JSR-56 规范解释了原因:

http://jcp.org/aboutJava/communityprocess/mrel/jsr056/index5.html

4.5 Package Element

...

The package element only makes sense to use with lazily-downloaded resources, since all other resources will already be available to the JVM. Thus, it will already know what packages are implemented in those JAR files. However, it can direct the JNLP Client to download the right lazy JAR resources, instead of having to download each individual resource one at a time to check.

关于java - 在 JNLP 中指定 'package' 属性有什么好处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13494674/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com