Problems with JOGL

Hello guys!

I have problems with JOGL library. I have download the latest xith3d and I have install it with third-parties libraries and when I try to execute some demo I get this error:

Exception in thread “main” java.lang.NoClassDefFoundError: com/xith3d/render/jogl/RenderPeerImpl
at org.odejava.xith3d.test.CarExample.initXith(CarExample.java:158)
at org.odejava.xith3d.test.CarExample.(CarExample.java:128)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.odejava.xith3d.test.RunDemo.main(RunDemo.java:155)

It seems that in xith3d package doesn’t exit any package with the name jogl. Somebody knows what is happening? Thanks.

P.D.: I’m sorry about my poor English. I’m Spanish.

Hi Nozing !

Welcome to these boards, have you found the infos you wanted on JOODE/ODEJava ? :slight_smile:

The exception you have mean that you don’t have the “jogl.jar” file in the correct path… from what you say here, you probably haven’t installed the native libs also (i.e. jogl.dll for windows, jogl.so for linux, jogl.dnylib for mac), I can just redirect you to the relevant page at xith.org : http://www.xith.org/pages/installing_xith3d.html

If you don’t find all the info you want there, just tell me.

PS : you’re spanish ? then you can make a spanish xith user group with rafa_es ^^

Hi Nozing. Welcome to the forum (from me, too) :slight_smile:

I think, this is wrong. Well, maybe this will additionally cause errors. But…

This is due to the fact, that no such class exists anymore. Xith has switched from the old jogl to jsr-231 some time ago. So the package name is now com.xith3d.render.jsr231.RenderPeerImpl (if you’re still using 0.8.0).

If you should decide to use a more recent version and checkout from SVN then make sure to replace all occurrences of “com.xith3d.” to “org.xith3d.”. I would advice you to do so, if you want to further work with xith. Very many things have been added to xith and xith-tk to make your life easier.

Maybe we should consider releasing a community build release the next days.

Marvin

Ah yeah you’re right Marvin I was soo sure it was the where-do-i-put-my-cookie-jars again question so that I didn’t even mind about the package name… silly me.

Well… Happens sometimes. Could have been me ;).

Luckily enough we are several to work on Xith3D.

Hi Amos

Sorry to disappoint you but i’m from Brazil and we speak portuguese :wink:

But i do speak a little spanish

Rafael

PS: I am a little off the forum now but i’ll be back in a couple weeks. ( I am finishing my monograph)

Ok, thanks to everybody.

This is working ;D and now I’m going to fight against ODEJava.

Really, thank you very much. :smiley:

Aoww sorry for the culture crossover ^^ I have difficulties to distinguish spanish and portuguese (cf. your code)

Hey great!

You’re welcome…

Well good luck. If you have any question about it, do ask (I worked with and on ODEJava a few years ago). Just a question, have you considered JOODE ? Last time I tested it it seemed pretty stable/useable : http://joode.sourceforge.net/

NP, Some words are similar in both languages ^^

Rafael

You’re welcome :).

I think JOODE is dead. There isn’t any documentation and I don’t find sources anywhere…

Anyway, thanks for the advice! See you!

I’m sure JOODE is not dead. There isn’t any doc, true, but its mostly a port of ODE, + other goodies…

And for the sources, as for all young projects, it can be found on its SVN : http://sourceforge.net/svn/?group_id=151965
(You can access SVN from Eclipse with Subclipse : http://subclipse.tigris.org/

I advise you to try and use it ^^

Oh and if you could from now post on the new Xith3D forums : http://www.xith.org/forum/ That would please JGO guys ^^