I have made a 2D java game using Slick and it extends StateBasedGame, it does not extend JApplet so it is not really a real application but from the link bellow it shows that StateBasedGame is part of the Slick API and it can be used as an applet if the html code is coded correctly, here is the link:
http://ninjacave.com/slickapplet
I tried modifying it to fit my code and came up with the following:
<applet code="org.lwjgl.util.applet.AppletLoader"
archive="lwjgl_util_applet.jar"
codebase="."
width="640" height="480">
<param name="al_title" value="Ham Blaster">
<param name="al_main" value="org.newdawn.slick.AppletGameContainer">
<param name="game" value="org.javagame.Game">
<param name="al_jars" value="racegame.jar, lwjgl.jar, slick.jar">
<param name="al_windows" value="windows_natives.jar">
<param name="al_linux" value="linux_natives.jar">
<param name="al_mac" value="macosx_natives.jar">
<param name="separate_jvm" value="true">
</applet>
I basically did as the guide said, I made a .jar file of my game in eclipse and called it racegame.jar, I downloaded lwjgl-2.8.5 and I copied the html code from the website and edited it for my game (the code shown above). The lwjgl had made a folder on my desktop, I opened it, went into the folder called jar (which was where all the jar files were kept) and put in my jar file which was racegame.jar, I got the following error when I tried to run the html code:
ClassNotFoundException
org.lwjgl.util.applet.AppletLoader
Does this mean that the AppletLoader cant be found in my lwjgl?