java plugin 安装,的Java插件(JAI)自动安装

I was wondering if anyone has any experience getting JAI to auto install from an applet for multiple platforms. I've looked at

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.

解决方案

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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值