I have an applet file which just displays hello world statement.How could i generate a jar file using the simple one class file that i am having.

I tried creating it from command line using the command jar cvfe hello.jar hello *.class

But when i tried executing the jar file,there is no applet being displayed.

没有正确的解决方案

其他提示

Are you trying to run directly from command page or from an HTML page?

  1. In the first case you should look here:Starting Java applet directly from jar file
  2. In the second case you should have a look here: Java Applet in JAR File

Hope this helps.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top