To compile, copy "game.html" and all ".java" files in the current folder to a new folder on your machine. Then, go to that folder and type: javac AsteroidGame.java To run, first compile and then type: appletviewer game.html