I have made my file and cannot get it to run on blogger. I have looked at a lot 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"
archive = "Snake.jar"
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 command 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{
Have you created an Executable JAR? Try to look here.
Otherwise, if you have a ClassNotFound error, it means that some classes are missing in your JAR. Do you use some libraries in your project? If yes, make sure to extract them in your executable JAR.