So here is the second entry in the
learning class!!
Subject : How do you package your applet in a JAR files and deploy it? What are the step that you take to do so?
DescriptionThe step I take to package and deploy an unsigned applet are the following :
1. I make sure that my code is complete and that there is no bug.
2. I put all my class files and ressources (images, music) in an empty folder.
3. I open the command prompt and navigate to this folder.
4. I type the following command : jar cvf Test.jar *
5. I make an html page with the following content :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <html> <head> <title>Applet test</title> </head> <body> <h2>Applet test</h2> <applet code = 'basicGame.BasicApplet3' archive = 'Test.jar', width = 800, height = 600 /> </body> </html> |
6. I upload both files ("Test.jar" and "AppletTest.html") on my server using an ftp client (FileZilla in my case)
7. Here is the result :
Applet TestNotesThese steps don't work for signed applet.
---------------------------------------------------------------
So how do you guys do it? Any way to make it faster/easier?