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?
Description
The step I take to package and deploy an unsigned applet are the following :
- I make sure that my code is complete and that there is no bug.
- I put all my class files and ressources (images, music) in an empty folder.
- I open the command prompt and navigate to this folder.
- I type the following command : jar cvf Test.jar *
- I make an html page with the following content :
<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>
- I upload both files (“Test.jar” and “AppletTest.html”) on my server using an ftp client (FileZilla in my case)
- Here is the result : Applet Test
Notes
These steps don’t work for signed applet.
So how do you guys do it? Any way to make it faster/easier?