i created a game in applet and i want to put it on a site. the problem is that my games has alot of classes. how can i use applet tag to up it online?


       <applet code = "Main.class" width = 900 height = 400> </applet>    

my folder tree


Please read oracle tag embeded. In your website, you need to structure (folders & file locations) similar to whatever in your development. If your main class is in the same location as your page, you need copy exactly the same folder structure and file location on to your web server location. One thing, you must NOT use absolute path in any of your code or your web page. You must use relative path only or you will have a hard time porting it from development environment to anywhere else.

here is my folder where there are all my java classes, images, and sounds. they all in one folder. when i run in web i get this error:

it is kind of working now. erros are gone and i can see the background of my applet. but the problem is that its not moving and i cant see my player, enemy or items. any idea why this is?

This question has already been answered. Start a new discussion instead.