[英]Java Applet in JAR File
I have created a java applet (.class file) and made a .jar with it and digitally signed the .jar file. 我创建了一个java applet(.class文件)并用它创建了一个.jar并对.jar文件进行了数字签名。 Now I need to run the .jar as an applet in firefox.
现在我需要在Firefox中将.jar作为applet运行。 What do I put in the html code to run the .jar file as an applet?
如何将html代码作为applet运行.jar文件? 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?
我尝试过它不起作用,它试图获取.class文件,如何使用Internet Explorer和Firefox中的applet标记加载和运行我的applet作为.jar文件? I searched on the internet and could not find an answer.
我在互联网上搜索,找不到答案。
http://java.sun.com/docs/books/tutorial/deployment/jar/run.html http://java.sun.com/docs/books/tutorial/deployment/jar/run.html
should work 应该管用
<applet code=TicTacToe.class
archive="TicTacToe.jar"
width=120 height=120>
</applet>
(The class has your main() I assume, the jar is the entire thing) (该类有你的main()我假设,jar是整个事情)
What doesn't work? 什么不起作用? Any errors?
有错误吗? Does it show up at least?
它至少出现了吗?
The HTML is as simple as: HTML简单如下:
<applet code="class_that_extends_Applet.class" archive="your_signed.jar">
<param name="param1" value="value1">
<param name="param2" value="value2">
</applet>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.