Are you trying to run directly from command page or from an HTML page?
- In the first case you should look here:Starting Java applet directly from jar file
- In the second case you should have a look here: Java Applet in JAR File
Hope this helps.
質問
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?
Hope this helps.