Java插件(JAI)自动安装

发布于 2024-08-10 21:23:22 字数 786 浏览 4 评论 0原文

我想知道是否有人有让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心安伴我暖 2024-08-17 21:23:22

$(os-name)$ 构造即可

只需使用文档可选包版本控制:下载和安装可选包

jai_core-Implementation-URL: http://mydomain.com/jai-$(os-name)$.jar

其中 $(os-name)$ 包含目标操作系统的名称由 os.name 系统属性定义。

Just use the $(os-name)$ construct as mentioned in the documentation

Optional Package Versioning: Download and Installation of Optional Packages

jai_core-Implementation-URL: http://mydomain.com/jai-$(os-name)$.jar

Where $(os-name)$ holds the name of the target operating system as defined by the os.name system property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文