JAR 文件中的 Java Applet
我创建了一个java小程序(.class文件)并用它制作了一个.jar并对.jar文件进行了数字签名。现在我需要在 Firefox 中将 .jar 作为小程序运行。我应该在 html 代码中添加什么来将 .jar 文件作为小程序运行?我尝试过,但不起作用,它尝试获取 .class 文件,如何使用 Internet Explorer 和 Firefox 中的 applet 标签加载并运行我的 applet 作为 .jar 文件?我在互联网上搜索,找不到答案。
I have created a java applet (.class file) and made a .jar with it and digitally signed the .jar file. Now I need to run the .jar as an applet in firefox. What do I put in the html code to run the .jar file as an applet? I tried and it doesn't work, it tries to get a .class file, how do I load and run my applet as a .jar file using the applet tag in Internet Explorer and Firefox? I searched on the internet and could not find an answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://java.sun.com/docs/books/tutorial /deployment/jar/run.html
应该可以工作
(该类有你的 main() 我认为,jar 就是整个东西)
http://java.sun.com/docs/books/tutorial/deployment/jar/run.html
should work
(The class has your main() I assume, the jar is the entire thing)
什么不起作用?有错误吗?至少能表现出来吗?
HTML 很简单:
What doesn't work? Any errors? Does it show up at least?
The HTML is as simple as: