1
我一直在撞墙撞了几个小时,试图找到一个关于如何编译一个包含多个class文件的applet到html文件的“好”教程。多级java小程序将jar文件转换为html
我可能会以这种错误的方式去做。这或我误会如何去做。
我有3类:颗粒(主)ParticleO和Handler
在cmd中我是输入命令:在src目录
Main-Class: Particles
(anextralinehere)
(IM:
jar cvfm Particle.jar manifest.txt *.*
清单)
它编译得很好(我想,我没有得到任何错误)
我做一个index.html
<html>
<head>
<title> Particle </title>
</head>
<body>
<applet code='Particles.class'
archive='Particle.jar',
width="1200", height="600"/>
</applet>
</body>
</html>
当我打开该文件,applet的说,它有一个错误,我的浏览器崩溃
编辑/更新 错误的是: “ClassNotFoundException”“Particles.class”
你怎么样张贴的错误? –
它没有说什么。它只是在applet应该在浏览器(所有浏览器)上显示的左上角显示“error。click for details”。如果我点击浏览器将冻结,对不起,如果我不清楚 – user1159424
**编辑抱歉**错误现在在crome的apearing:/ ie讨厌我哈哈。错误是“ClassNotFoundException”“Particles.class” – user1159424