Exception ClassDefNotFound ...$KeyboardListener..

Hi,
(OS: WinXP, VM: 1.5 Update1)

I’ve installed Xith3D copied all the jars and dlls, but unlikely I can only start the runcube demo from the shell. All other test throw a ClassDefNotFound Exception. They can’t find a …$KeyboardListener class.

Using Java WebStart the demos work but the easycollision demo (first on the site) is stuttering even though I’ve 2,4 GHz with a NVidia 4200 Go. The cool dude demos don’t work even with WS. I can start them, but after choosing the resolution the window starts for half a second and then the hole process kills himself.

I have the newest driver available installed for my graphics card and the board…!

Any ideas?

Greets,
Juan

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1069557326;start=30#30

I’m pretty new to Xith3D and I’ve had the same problem.

If I was to have a guess, it seems something to do with the xith3d.jar file packaging.

If you want to get the demos working, you can compile them yourself.
I would suggest that you delete the package line in each demo class before compiling.
This way you would save yourself having to worry about packaging, if all you want is to try the demos.

To compile:
javac -classpath /path/to/xith3d/libs/xith3d.jar YourClass.java
To run:
java -cp /path/to/xith3d/libs/xith3d.jar:. YourClass

Note the ‘:.’ at the end

This works on GNU/Linux. I think you would have to replace ‘:’ with ‘;’ and ‘/’ with ‘’ to get it to work on Microsoft Windows.

Otherwise, you would have to place your classes infront of xith3d.jar in the classpath.