New to Xith, having problems

I’ve just started using Xith3D this week and I’ve been going through the installation guide. Well, I think I have Xith3D installed correctly and all of my path’s in order.

I tried out the cubetest example and it works perfectly so I’m assuming that all of the libraries have been put in the appropriate places.

The problem is that I can’t seem to run the HelloXith3D example. It appears to compile correctly and the class file is appearing in the correct subdirectory, but when I try to run it I’m getting a NoClassDefFoundError. It almost seems like it can’t find HelloXIth3D.class even though it looks like it’s in the right place.

I went ahead and took out the packages line from the file and compiled it at the root of the Xith3D directory to see if that would fix anything but I still get the same error.

I’m really scratching my head over this one because I haven’t had any problems running my java apps before and I seem to have followed the installation instructions verbatim, anyone have an idea as to what could possibly be wrong?

Could you post the full error details, stack trace etc?

Kev

Unfortunately I don’t think it will give you very much

C:\Xith3D\xith3d>java -cp libs/xith3d.jar:. org.xith3d.gsg.HelloXith3D
Exception in thread “main” java.lang.NoClassDefFoundError: org/xith3d/gsg/HelloX
ith3D

are you compiling that example yourself?

try:


java -cp libs/xith3d.jar:classes org.xith3d.gsg.HelloXith3D

NOTE: On windows replace the ‘:’ with a ‘;’ I think.

Check to see that the HelloXith3D class was indeed created in a subdirectory named classes.

It looks like there is a bug in the documentation.

Cheers,

Will.

Correct! That fixed it, I was really confused there for a while. Thanks!