启动 jnlp 时,使用 >和 >使用 1.4 版本的 javaws,我们将收到类似 jnlp 规范 1.5 不受支持,仅支持 1.0 的错误。然而,这种情况下显示的错误对于最终用户来说并不是很清楚,就像它没有给出下一步该做什么的任何线索。那么有什么方法可以让我们将错误消息自定义为“可用的 java 版本是 1.4,所需的 java 版本是 1.6,请从...下载”。我没有在 jnlp 规范(6.0.10)中找到提供自定义错误消息的规定。如果我错过了什么,请告诉我。
我们也只依赖于 javaws 而不依赖 java 插件,因此检查浏览器中安装的 java 插件的版本也不是一个选项。让我们知道您对此的宝贵想法。
TIA
On launching a jnlp, with <jnlp spec="1.5+"
> and <j2se version="1.5+" href="..."/
> using javaws from 1.4 we will be getting error like jnlp specification 1.5 is not supported and only 1.0 is supported. However error shown in this case, is not very clear to end users, like it doesn't give any clue on what to do next. So is there any way through which we could customize the error message to something like, "Available java version is 1.4, Required java version is 1.6, Kindly download from....". I didn't find a provision to give customized error message in jnlp specification (6.0.10). Let me know if I miss something here.
We are also dependent only on javaws and not on java plugin, so checking the version of java plugin installed in browser is also not an option. Let us know your valuable ideas on this.
TIA
发布评论