我有一个servlet类,它通过applet为我的网站提供服务。当我连接到网站(位于我自己的计算机上)并等待applet加载它失败并说:不兼容的魔法值1008813135.这是什么意思?
html文件中的applet标记:
<applet codebase="bin" code="gui/TickTackToeApplet.class" width=500 height=500>
</applet>
类文件位于java项目文件夹/ bin / gui(package)/classfile.class
这是html文件内容:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Henrik's tick-tack-toe game</title>
<center><h1 style="color: white">Tick-Tack-Toe Logo will be displayed here...</h1></center>
</head>
<body bgcolor="black">
<form method="POST" action="/ticktacktoe">
<left>
<SELECT NAME="players">
<OPTGROUP LABEL="Players">
<OPTION VALUE="player">playerName2
<OPTION VALUE="player">PlayerName
</OPTGROUP>
</SELECT>
<input type="SUBMIT" value="Start game">
</left>
<br><br>
<center>
<applet codebase="bin" code="gui/TickTackToeApplet.class" width=500 height=500>
<p>Testing my applet...</p>
</applet>
</center>
</form>
</body>
</html>