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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <applet code="org.lwjgl.util.applet.AppletLoader" archive="org.lwjgl.util.applet.AppletLoader" 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 found the code on a forum and modified it to work with my game, the link to the forum is
http://ninjacave.com/slickapplet 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.