Sunday, 25 August 2013

.Jar will not run on Blogger

.Jar will not run on Blogger

I have made my file and cannot get it to run on blogger. I have looked at
alot of information about this and cannot seem to get it to run. Is there
a problem with my code? It always comes up with class not found problem.
<applet code = "Snake" height=300 width=300
codebase="https://sites.google.com/site/zmchenryfilecabinet/filecabinet/">
</applet>
This is the output of the jar tf Snake.jar command in the ocmmand prompt:
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
In the manifest there is an empty line after my class file and in the
manifest it reads:
Manifest-Version: 1.0
Main-Class: Snake
Also my main class begins with public class Snake extends JApplet{
Thank you for your help.

No comments:

Post a Comment