Il codice da inserire nella tua pagina html è lo stesso che puoi copiare dalla pagina html dove hai già visto funzionare l'applet.
Quando si ha il jar si usa l'attributo archive, che serve a indicare l'uso di un insieme di classi usate dall'applet.
Il file .class che contiene l'entry point dell'applet (ovvero la classe che estende l'oggetto Applet di base) sicuramente si trova dentro l'archivio. Nonostante ciò bisogna conoscere il suo nome in modo da indicare attraverso l'attributo CODE qual'è la classe entry point.
Inoltre tieni conto che tale file .jar deve essere copiato nel server dove c'è la tua pagina html.
codice:
<APPLET NAME="QuizMaster" CODE="QuizMaster.class" ARCHIVE="QuizMaster.jar" CODEBASE="/applets/quizmaster/quiz1/" WIDTH=600 HEIGHT=320>
<PARAM NAME=QuizFile VALUE="quizgeneral.txt">
<PARAM NAME=FileEncoding VALUE="standard">
<PARAM NAME=ShowAnswersStatus VALUE="AtEnd">
<PARAM NAME=ShowRestartQuizButton VALUE="Yes">
<PARAM NAME=NumberOfColumns VALUE="1">
<PARAM NAME=TagLoadingApplet VALUE="Loading QuizMaster... Please wait.">
<PARAM NAME=TagLoadingQuestion VALUE="Loading question... Please wait.">
<PARAM NAME=TagLoadingSolution VALUE="Calculating score... Please wait.">
<PARAM NAME=TagCorrect VALUE="Correct!">
<PARAM NAME=TagWrong VALUE="Wrong!">
<PARAM NAME=TagShowSolution VALUE="View solutions">
<PARAM NAME=TagNextSolution VALUE="Next solution">
<PARAM NAME=TagNextQuestion VALUE="Next question">
<PARAM NAME=TagRestartQuiz VALUE="Take the quiz again">
<PARAM NAME=BackgroundSkinFile VALUE="backgroundskinfile1b.jpg">
<PARAM NAME=ButtonSkinFile VALUE="buttonskinfile1.jpg">
<PARAM NAME=BackgroundColor VALUE="000000">
<PARAM NAME=QuestionColor VALUE="FF9900">
<PARAM NAME=QuestionFontStyle VALUE="TimesRoman">
<PARAM NAME=QuestionFontSize VALUE="16">
<PARAM NAME=AnswerColorOut VALUE="FFFF00">
<PARAM NAME=AnswerColorOver VALUE="FFFF00">
<PARAM NAME=AnswerColorSolution VALUE="00FF00">
<PARAM NAME=AnswerFontStyle VALUE="Arial">
<PARAM NAME=AnswerFontSize VALUE="12">
<PARAM NAME=ExplanationColorCorrect VALUE="00FF00">
<PARAM NAME=ExplanationColorWrong VALUE="FF0000">
<PARAM NAME=ExplanationFontStyle VALUE="TimesRoman">
<PARAM NAME=ExplanationFontSize VALUE="16">
<PARAM NAME=ScoreColor VALUE="FF9900">
<PARAM NAME=ScoreFontStyle VALUE="TimesRoman">
<PARAM NAME=ScoreFontSize VALUE="16">
<PARAM NAME=ButtonColorOut VALUE="FFFF00">
<PARAM NAME=ButtonColorOver VALUE="FF9900">
<PARAM NAME=TextXPosition VALUE="220">
<PARAM NAME=TextYPosition VALUE="10">
<PARAM NAME=TextMaxWidth VALUE="370">
<PARAM NAME=ImageXPosition VALUE="10">
<PARAM NAME=ImageYPosition VALUE="10">
<PARAM NAME=ButtonsXPosition VALUE="220">
<PARAM NAME=ButtonsYPosition VALUE="290">
Java is not enabled: to solve your Java problems, please take a look at the help section of RealApplets.com.
</APPLET>