1
<html>
<applet code="de.wim.outldd.examples.DragDropTest_ModeMemoryStream" archive="outIdd.jar" width="500" height="500"/>

</html>

我尝试在 HTML中打开这个小程序,但我得到一个 ClassNotFoundException。html 与 .jar 位于同一目录中。在代码属性中,我将目录结构放在 .jar 中的类中。有人请试试这些。

4

1 回答 1

2
<applet 
  code="de.wim.outldd.examples.DragDropTest_ModeMemoryStream" 
  archive="outIdd.jar" 
  width="500" 
  height="500"/>

小程序元素曾经打算自封闭,即 jar 名称中的小写“l”(用于 Lucy)而不是大写“I”(用于 Imogen)。所以元素应该是这样的:

<applet 
  code="de.wim.outldd.examples.DragDropTest_ModeMemoryStream" 
  archive="outldd.jar" 
  width="500" 
  height="500">
</applet>
于 2012-08-31T00:37:57.050 回答