如何通过向 Eclipse 提供 html 文件来在 Eclipse 中启动小程序? [英] How to start applet in eclipse by providing eclipse with an html file?
问题描述
我在eclipse下写过java小程序程序,在运行配置"的帮助下运行,提供小程序参数.我还写了一些包含 <applet> 的 html 文件.</applet> 标签.但是我无法通过提交html文件在eclipse下运行applet.我不知道如何在eclipse中设置运行配置以使用applet打开一个html文件.我正在寻找通过为 eclipse 提供一个 html 文件来在 eclipse 下运行小程序的想法.如果有人可以帮助我,我将不胜感激.提前致谢.
I have written java applet programs under eclipse and run them with help of "run configuration" to provide applet parameters. I have also written a few html files containing <applet> </applet> tags. But I couldn't run applet under eclipse by submitting html files. I don't know how to set the run configuration in eclipse to open an html file with applet. I am looking for ideas to run applets under eclipse by providing eclipse with an html file. I would be grateful, if anyone could help me. Thanks in advance.
推荐答案
对您编辑的问题的新答案.从互联网复制并由我更新以适合 Eclipse Indigo:).
A new answer to your edited question. Copied from the internet and updated by me to fit Eclipse Indigo:).
首先,您必须转到窗口/Web 浏览器中的首选项并将 Eclipse 设置为使用内部 Web > 浏览器.
First you will have to go to preferences in Window/Web Browser and set Eclipse to Use internal Web > browser.
之后,您可以使用右键单击/打开方式/Web 浏览器从导航器树中打开 HTML 文件.
After that you can open the HTML file from the navigator tree using right click/Open With/Web Browser.
这篇关于如何通过向 Eclipse 提供 html 文件来在 Eclipse 中启动小程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!