关于部署小程序的问题?
我正在使用Eclipse开发一个小程序模块,这需要一堆库。在Eclipse环境下运行正确。我想知道如何将此代码嵌入到html页面中,或者如何部署此小程序?
I am using Eclipse to develop an applet module, which requires a bunch of libraries. It runs correctly under the Eclipse environment. I would like to know how to embedded this code in a html page, or how to deploy this applet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
由于使最终用户正确工作涉及大量技术,我强烈建议您在继续之前了解这些东西如何良好地交互。
有关 applet 的 Java 教程部分是一个不错的起点,其中详细介绍了如何部署工作。
Due to the amount of technologies involved in making this work correctly for the end-user, I would strongly suggest that you learn how these things interact well before proceeding.
A good place to start is the Java Tutorial section on applets which details how deployment work.
以下是一些选项:
Here are some options:
有很多解决方案,根据您现有的网络基础设施,您可能会发现其中一种优于另一种。
通常,在网页中,您可以将标签(
There are a number of solutions, and depending on your existing web infrastructure, you might find one superior to another.
Generally, in the web page, you add tags (either
<applet ...>
or<object ...>
) to the document where you wish the applet to be inserted, and the contents of the tab reference the JAR file which the web browser will then download.在
applet
元素的archive
属性中添加对每个库 Jar 的引用。Add a reference to each library Jar in the
archive
attribute of theapplet
element.对于代码片段,类似这样的内容将在 html 页面中运行以运行您的小程序:
For a code snippet, something like this will work within an html page to run your applet: