문제

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