部署如何为当今的浏览器部署java小程序(小程序、嵌入、对象)? 5 月,2 周 Questions & Answers 23305 如何为现代浏览器部署java小程序? 我知道有三种可能,但没有人告诉我更喜欢哪一种以及如何使用它们 有人有这方面的资源吗?我找不到:(
# 1 楼答案 使用部署Java。js——即使你的目标不只是1.6及以上。 我已经使用它一年多了,小程序甚至仍然支持MSJVM(Java 1.1) 对于较旧的JRE,脚本中有很多功能是不可用的,但它仍然非常有用
# 3 楼答案 部署Java。js有很多严重的缺陷 阅读我在Oracles Java论坛上的write-up on deployJava.js 我很想在这方面启动一个开源项目,但我没有启动或做任何开源工作的经验。有人愿意帮我开始吗? (最好使用Mercurial在BitBucket上。) 如果是,请对此发表评论,并直接与我联系
# 4 楼答案 在The Java Tutorials中有一个标题为Using applet, object and embed Tags的章节讨论了这个问题 从General Considerations开始: Deploying Applets on the Internet Versus an Intranet When deploying applets: Use the applet tag if the Web page is accessed through the Internet. Use the object or embed tag if the Web page is accessed through an Intranet. Deploying Applets for Specific Browsers When deploying applets: For Internet Explorer only, use the object tag. For the Mozilla family of browsers only, use the embed tag. If you must deploy an applet in a mixed-browser environment, follow the guidelines in the section Deploying Applets in a Mixed-Browser Environment. 应该注意的是,applet标记已经被弃用,所以可能不希望使用该标记。(More information on the ^{} tag from the W3C) (注意:链接已从上一次编辑更新为指向Java教程的链接。)
# 5 楼答案 如果您可以针对Java 6 update 10或更高版本,您可以simplify your life: <script src="http://java.com/js/deployJava.js"></script> <script> var attributes = {codebase:'http://java.sun.com/products/plugin/1.5.0/demos/jfc/Java2D', code:'java2d.Java2DemoApplet.class', archive:'Java2Demo.jar', width:710, height:540} ; var parameters = {fontSize:16} ; var version = '1.6' ; deployJava.runApplet(attributes, parameters, version); </script>
# 6 楼答案 好吧,要知道部署Java。js设计为在文档加载时调用。所以,如果在构建DOM之后,在事件发生时动态插入小程序,那么使用这种新的标准方法可能会有点运气不佳。 我们必须使用object/embed/noembed结构 编辑:哦,有人找到了更好的方法,但这需要手动修改SUN最初的部署Java。js,请看下面的链接: Java Plug-In - Important addition to deployJava.js
# 1 楼答案
使用部署Java。js——即使你的目标不只是1.6及以上。 我已经使用它一年多了,小程序甚至仍然支持MSJVM(Java 1.1)
对于较旧的JRE,脚本中有很多功能是不可用的,但它仍然非常有用
# 2 楼答案
如果您正在编写应用程序,可以考虑使用java Web start而不是applet。只有在创建必须在浏览器中显示的内容时,才会使用小程序
# 3 楼答案
部署Java。js有很多严重的缺陷
阅读我在Oracles Java论坛上的write-up on deployJava.js
我很想在这方面启动一个开源项目,但我没有启动或做任何开源工作的经验。有人愿意帮我开始吗? (最好使用Mercurial在BitBucket上。) 如果是,请对此发表评论,并直接与我联系
# 4 楼答案
在The Java Tutorials中有一个标题为Using applet, object and embed Tags的章节讨论了这个问题
从General Considerations开始:
应该注意的是,} tag from the W3C )
applet
标记已经被弃用,所以可能不希望使用该标记。(More information on the ^{(注意:链接已从上一次编辑更新为指向Java教程的链接。)
# 5 楼答案
如果您可以针对Java 6 update 10或更高版本,您可以simplify your life:
# 6 楼答案
好吧,要知道部署Java。js设计为在文档加载时调用。所以,如果在构建DOM之后,在事件发生时动态插入小程序,那么使用这种新的标准方法可能会有点运气不佳。 我们必须使用object/embed/noembed结构
编辑:哦,有人找到了更好的方法,但这需要手动修改SUN最初的部署Java。js,请看下面的链接: Java Plug-In - Important addition to deployJava.js