I have made a GUI in Java using State Based Game, as it extends StateBasedGame and not JApplet its not a true applet, I want to put it on a website and am unsure on how to do this, I have been told that the following code allows me to make this into an applet using html and not having to edit the Java code:
I run that on html and get the following error message: org.lwjgl.util.applet.AppletLoader even though there is a AppletLoader class in my lwjgl.
If you can help me fix the above code then please tell me but if not possible please give me another method of putting my GUI onto a website.
Also, It may be worth mentioning, when I made my Java GUI, I had imported lwjgl and slick into eclipse, so I am assuming they are also in my racegame.jar file.
Joined: Sep 01, 2010
Have your resolved this yet?
One thing I was thinking, Eclipse doesn't necessarily include library files in an export. But it is easy to verify whether or not lwjgl.jar and slick.jar made it to the export or not. You can rename your game file game.zip and inspect it.
I haven't run slick applets, but I do know the html for Java applets is finicky and tricky to debug. It is very easy to slip up with addressing, especially where complex package names have to be part of the address.
I can't tell if the error message you gave means the html was unable to locate the AppletLoader.