【发布时间】:2023-03-13 18:09:01
【问题描述】:
我已经制作了我的文件,但无法让它在博客上运行。我查看了很多关于此的信息,但似乎无法让它运行。
我的代码有问题吗?总是会出现class not found的问题。
<applet
code = "Snake"
archive = "Snake.jar"
height=300
width=300
codebase="https://sites.google.com/site/zmchenryfilecabinet/filecabinet/">
</applet>
这是命令提示符中 jar tf Snake.jar 命令的输出:
META-INF/MANIFEST.MF
.classpath
Snake.class
Apple.class
applescaled.png
bodySprite.png
headSprite.png
apple.png
Snake.java
controlScreen.jpg
snakehead.png
endAnimation.gif
apple1.png
snakebody.png
.project
在清单中,我的类文件后面有一个空行,在清单中它显示:
Manifest-Version: 1.0
Main-Class: Snake
我的主课也以
开头public class Snake extends JApplet{
【问题讨论】:
标签: java security jar applet accesscontrolexception