Java Applet in JAR File

前端 未结 2 1581
悲哀的现实
悲哀的现实 2020-12-11 16:49

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 t

相关标签:
2条回答
  • 2020-12-11 17:22

    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)

    0 讨论(0)
  • 2020-12-11 17:24

    What doesn't work? Any errors? Does it show up at least?

    The HTML is as simple as:

    <applet code="class_that_extends_Applet.class" archive="your_signed.jar">
        <param name="param1" value="value1">
        <param name="param2" value="value2">
    </applet>
    
    0 讨论(0)
提交回复
热议问题