Vote count:
0
I made a jar-file of three classes that together make a game. I did it like this:
Made a manifest.mf file with: "MainClass: Spel (two enters)" in. Compiled my java-files to class-files.
and entered this command in my cmd:
jar cfm Spel.jar manifest.mf Spel.class Spel$1.class Spel$SpelTimerTask.class
The jar-file was created and when I dubble click on it, it works perfectly. But when I make my html-code like this and try to execute my java applet I get a RuntimeException (java.lang.reflect.InvocationTargetException), does anybody know why?
<html>
<body>
<applet archive="Spel.jar" code="Spel.class" width="600" height="400"></applet>
</body>
</html>
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire