2013-09-16 61 views
0

我已经开发了Java Applet应用程序,但我在部署时遇到问题。应用程序在Eclipse中成功编译。我将应用程序导出到JAR文件中。我已经创建了HTML文件,并在它把以下内容:Java Applet将无法启动

<html> 
<title>The Hello, World Applet</title> 
    <body> 
     <hr> 
      <applet code="Applet.class" width="100%" height="100%" archive="Clijent.jar" > 
      < 

      </applet> 
     <hr> 
    </body> 
</html> 

当我使用WEB浏览器启动小程序,我得到以下错误。

enter image description here

我成功地找到自己的Eclipse项目类的,我把它添加到构建路径。哪里有问题?

+1

发表您的推出类别和错误详细 –

回答

1

添加SwingX swingx.jar类列表中的Applet在applet标记archive属性,使其包含在类路径

<applet code="Applet.class" width="100%" height="100%" archive="Clijent.jar,swingx.jar" > 
+0

你帮我,这是解决方案。非常感谢:) – MrD

+0

没问题,乐于帮忙! :) – Reimeus