Java插件(JAI)自动安装
我想知道是否有人有让 JAI 从多个平台的小程序自动安装的经验。我查看了
http:// /java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/extensions.html#specifying
这似乎暗示(事实上没有提到相反的情况)我只能指定单一平台安装程序。例如,
Extension-List: jai_core
jai_core-Extension-Name: javax.media.jai
jai_core-Specification-Version: 1.1-mr
jai_core-Implementation-Version: 1.1.3
jai_core-Implementation-Vendor-Id: com.sun
jai_core-Implementation-URL: http://mydomain.com/jai-windows.jar
无论如何,我看不到指定基于平台的实现 url,并且 JAI 有很多本机内容,因此看起来我必须选择一个平台。我一定错过了一些明显的东西,因为这违背了 Java 的最初主要目标:-(
我能想到的唯一解决方案是要么指定一个 url ,该 URL 可以有望确定目标平台是什么,然后发回相关文件,创建多个小程序罐子,每个都有不同的清单,这远非理想。
I was wondering if anyone has any experience getting JAI to auto install from an applet for multiple platforms. I've looked at
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/extensions.html#specifying
And it seems to imply (by the fact nothing to the contrary is mentioned) I can only specify an single platforms installer. e.g.
Extension-List: jai_core
jai_core-Extension-Name: javax.media.jai
jai_core-Specification-Version: 1.1-mr
jai_core-Implementation-Version: 1.1.3
jai_core-Implementation-Vendor-Id: com.sun
jai_core-Implementation-URL: http://mydomain.com/jai-windows.jar
I can't see anyway of specifying an implementation url based on platform and JAI has a lot of native stuff so it looks like I have to choose a single platform. I must be missing something obvious as this defeats the initial major objective of Java :-(
The only solutions I can think is to either specify an url to something that can hopefully determine what the target platform is and send back the relevant file, create multiple applet jars, each with different manifests. This is far from ideal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
$(os-name)$ 构造即可
只需使用文档可选包版本控制:下载和安装可选包
其中
$(os-name)$
包含目标操作系统的名称由 os.name 系统属性定义。Just use the
$(os-name)$
construct as mentioned in the documentationOptional Package Versioning: Download and Installation of Optional Packages
Where
$(os-name)$
holds the name of the target operating system as defined by theos.name
system property.