[英]Java Applet won't start
I've developed Java Applet application, but I'm having problems with deployment. 我已经开发了Java Applet应用程序,但是在部署时遇到了问题。 Application successfully compiled in Eclipse.
应用程序已在Eclipse中成功编译。 I exported application in a JAR file.
我将应用程序导出到JAR文件中。 I've created HTML file and put following in it:
我创建了HTML文件,并在其中添加了以下内容:
<html>
<title>The Hello, World Applet</title>
<body>
<hr>
<applet code="Applet.class" width="100%" height="100%" archive="Clijent.jar" >
<
</applet>
<hr>
</body>
</html>
When I start applet using web browser, I get following error. 当我使用Web浏览器启动applet时,出现以下错误。
I successfully find that class in my Eclipse project, and I added it to the build path. 我在Eclipse项目中成功找到该类,并将其添加到构建路径中。 Where is the problem?
问题出在哪儿?
将SwingX swingx.jar
添加到applet标签中Applet的archive
属性中的类列表中,以使其包含在类路径中
<applet code="Applet.class" width="100%" height="100%" archive="Clijent.jar,swingx.jar" >
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.