chronicles of surbania

I got this


java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
	at org.newdawn.slick.GameContainer.getTime(GameContainer.java:424)
	at org.newdawn.slick.GameContainer.<init>(GameContainer.java:96)
	at org.newdawn.slick.AppletGameContainer$Container.<init>(AppletGameContainer.java:196)
	at org.newdawn.slick.AppletGameContainer.init(AppletGameContainer.java:91)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

I know it means that I dont have it included, here is my applet code:


<applet code="org.newdawn.slick.AppletGameContainer" archive="slickapplet.jar,slick.jar,lwjgl.jar" width="640" height="480"> 
		<param name="game" value="MyGame"> 
</applet> 

thx in advance

h3ckboy heres an example applet that uses slick, just replace the tong.jar with your own game jar, make the appropriate changes to the html and then sign all jars with your own certificate.

should hopefully get you going with slick applets.

kk. that is actually the example I got my applet code from, but Il try it all again :confused:

k thx what oyu gave me is way different.

I did what you said and changed the tong.jar.

and I get this now:


an error occured while loading this applet.
please contact support to resolve this issue.
fatal error(4):null

this was NOT in the console. This apeared int eh applet area.

it probably has to do with some pictures not existing.

just found out what the real problem is.

it cannot find the natives.

Wich I included the jar.

I will just upload all of the natives for ever singel OS :confused:

I am leaving first, so if this is dumg idea please tell me :).

error(4) usually means a jar specified in the html is missing, all the jars must be uploaded, including the ones with the natives in them.

yeah, the example you gave me was very flawed. I got another I found int he slick wiki.

I got far, the lwjgl loading thing apeared, and got half way.

I get this though:

Fatal error occured (5): error in opening zip file

I dont even have any zips. I dont think I should either.

EDIT:

figured out that it happens with the natives.

k I fixed that.

I got it all working with only the class.

but how can I do it with a jar. It says to do it [name of jar].[name of class]. but it doesnt work :confused:

a bit difficult to tell whats your doing wrong from just that description, if you can provide your game jar, i can have a look for you and create an applet for you if you like?

the jar link is on the homepage.

please find a working slick applet of your jar here.

notice the changes to your jar as the files that should not be in there have been removed.

Walked through the first door in jnlp version and crashed…

Tried the test jar and it didn’t start…

What ever that applet does doesn’t work…

How do I talk to people?

the door, I dont know why taht happens.

the test applet isnt even teh game. I made a smal example slick program so that it could load faster.

I also went through the Red door, and the game Ended.
but if you go up to those 2 guys, and shoot on them, you enter a different room

yeah that is supposed to happen

if you press space on an npc it activates it.

umm, well I have finished the arena, it is not uploaded though :/.

ok, I just felt the urge to make a chat (I know kinda useless).

It is pretty much done, there is just some really dumb glitch. When I send a message, it will just go to a random location, it isnt even alphabetical.

It makes me feel a lot happier knowing im not the only person that has teething problems :O).
Your learning game programming the same way i am :O) Practice makes perfect :O)


java.lang.UnsupportedClassVersionError: Bad version number in .class file
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:256)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1083)
	at com.sun.javaws.Launcher.run(Launcher.java:105)
	at java.lang.Thread.run(Thread.java:613)

I’m guessing this is because I don’t have Java 6?


<j2se version="1.4+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="32m" max-heap-size="256m"/>  

doesnt this make it work for java 1.5 as well?