的Java插件(JAI)自动安装 [英] Java plugin (JAI) automatic installation

查看:492
本文介绍了的Java插件(JAI)自动安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果任何人有任何获得JAI自动从applet多平台安装体验。我看了

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%5Fguide/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

我看不到反正指定基于平台实现的url和JAI有很多本土的东西,所以它看起来像我有选择的单一平台。我必须失去了一些东西很明显,因为这会使最初的Java主要目标: - (

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 :-(

我能想到的唯一的解决办法是要么指定URL的东西,希望能够确定目标平台是什么,并发送回相关的文件,创建多个小程序罐子,每个不同的体现。这是很不理想。

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.

推荐答案

只需使用 $(os名称)$ 结构,如文档中提到的

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

可选包版本:下载和安装可选包

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

其中, $(os名称)$ 持有由 os.name 系统属性。

这篇关于的Java插件(JAI)自动安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆