I know there are a lot of theese questions but when I do one of theese html applets like: <applet code=JavaGame.class
archive="JavaGame.jar"
width=120 height=120>
</applet>
It throws me an error like this one: JavaGame(Wrong name: javagame/JavaGame)
I have more than one class my main class looks like this:
public class JavaGame{...}
static boolean leva = false;
static boolean prava = false;
static boolean horni = false;
static boolean dolni = false;
public static void main(String[] args) {....}
I have tried the following:
extends Applet in the main class (It just showed blank screen nothing else) public class javagame.JavaGame (It also dint work it just showed blank screen nothing else)
it cant be the error in the main class because it works normally on its own without any html tag.
can anyone please help me I have all the neccesary files in a folder with the html file thanks.