劳斯莱斯部署 Java 小程序的方式是什么? [英] What is the Rolls-Royce way to deploy a Java applet?

查看:20
本文介绍了劳斯莱斯部署 Java 小程序的方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用 appletobjectembed 标签和 JavaScript 部署小程序,但我'追求最佳方法(就最终用户体验而言).

I know how to deploy an applet using applet, object, embed tags and JavaScript, but I'm after the best approach (in terms of end user experience).

Sun 建议使用 小程序标签,以及在同一页面上混合嵌入/对象标记.

Sun suggests using the applet tag, and a mixed embed / object tag on the same page.

我正在考虑以下内容:

  1. 跨浏览器支持.
  2. 如果发现不正确的 Java 版本(例如 1.5 之前的版本),则回退到下载页面.
  3. 在 Java VM 启动期间和下载 Jar 时加载页面(最好是带有进度条的自定义启动屏幕).

之前有人问过问题:如何部署检查 1.6插件框架.这些都没有完全回答我的问题.我也不考虑 web start 或 Java FX.

Questions have been asked before: how to deploy, check for 1.6, and Plugin framework. None of these fully answer my question. I am also not considering web start or Java FX.

我目前的解决方案是包含一个额外的为 Java 1.1 编译的小测试小程序.如果发现 Java 1.5 之前的版本,它会将页面重定向到失败页面.如果未找到 Java,该页面会要求用户访问 java.com.这可以接受,但效果不佳,因为它需要一个额外的小程序,并且在 VM 启动时不显示任何内容.

My current solution is to include an additional small test applet compiled for Java 1.1. If Java pre-1.5 is found it redirects the page to the failure page. If no Java is found the page asks the user to visit java.com. This works acceptably, but is poor because it requires an additional applet and doesn't show anything while the VM is starting.

推荐答案

参见 PulpCore 的解决方案(许可证:BSD).

一个例子:Milpa 游戏...现在,如果我是劳斯莱斯小程序部署曾经看过.

An example: the Milpa game... now, that's Rolls-Royce applet deployment if I ever saw it.

而且——绝对同意,Sun 的部署工具包非常需要处理禁用的 Java——它目前似乎完全忽略了这一点.

And -- absolutely agreed, Sun's Deployment Toolkit sorely needs to handle disabled Java -- it seems to ignore that entirely, currently.

这篇关于劳斯莱斯部署 Java 小程序的方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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