html中用applet
<applet code=Clock.class width=400 height=100></applet></p>已经运行好的Applet却不能在web中显示出来。不知为什么
C:\Documents and Settings\Administrator\桌面
<applet code=Clock.class width=400 height=100></applet></p>已经运行好的Applet却不能在web中显示出来。不知为什么
C:\Documents and Settings\Administrator\桌面
<applet codebase = "./applet-path" //路径
code="mainclassname.class" //main所在class
archive="jarname.jar" //jar名,当然没有打包成jar时不需要。
name="name" width = 1000 height = 650>
<param name=GidgeName value="0">
</applet>无法在Web页面中显示出来还可能有以下问题:
1.你的jre安装是否正确。有可能applet在执行时无法找到jre
解决方法:重新安装jre2.main class的路径不对。
解决方法:当然是确认路径建议:
在ie的 sun java 的控制台中察看错误,当然你的程序在本地执行没有问题,
应该不会出现错误。good luck!