Question

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.

No correct solution

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top