• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Putting my Slick game into a website

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 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.
 
Ranch Hand
Posts: 140
4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic