Login  Register

Re: how to run jogl+j3d successfully?

Posted by gmrolf on Aug 27, 2012; 1:08pm
URL: https://forum.jogamp.org/how-to-run-jogl-j3d-successfully-tp4025876p4025900.html

OK I tried it several times without bigger success...
i put all jars into a directory and took any "non-native"-called jar into the classpath
(    j3dcore.jar     j3dutils.jar    vecmath.jar    jogl-all.jar    joal.jar    gluegen-rt.jar   )
JOGL works fine and nice (the Gears example), but when starting the HelloUniverse or an other Example
made for java3d the onliest thing I'll get is: (also tried: Morphing, GearBox, Applet3D
"3D [dev] 1.6.0-pre1-daily-experimental daily"
and a waiting cursor - but nothing else...

Just when I use the FourByFour Example it differs...the above message occurs, but
also
two NullPointerExceptions before
then a blank Frame opens with nothing inside (everything is grey...)

then the following error-text:
Exception in thread "J3D-Renderer-1" java.lang.NoSuchMethodError: javax.media.nativewindow.GraphicsConfigurationFactory.getFactory(Ljavax/media/nativewindow/abstractGraphicsDevice:)Ljavax/media/nativewindow/GraphicsConfiguration(JoglPipeline.java:8271)
          at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8000)
          at javax.media.j3d.Renderer.doWork(Renderer.java:507)
          at javax.media.j3d.J3d.J3dThread.run(J3dThread.java:270)

the same will happened, when I call a tiny j3d soft I'd wrote...just the swing-gui elements will be shown
no canvas3d will be added to the Frame. When Closing the app with the x-button (closingadapter) it runs into an nullpointerError AWT so seem to be a swing problem...

When Starting (from j3d example) jcanvas3d just the message above occurs and the swingUI occurs but without any function noch checkbox is selectable neither deselectable...

OS win7 64-bit with JRE 1.7.0_05, latest nvidia drivers
those jogl-jars and j3d jars from your Blog
 (btw. now better undesrtandable how to do with "native" jars )

I'll gave a try tommorrrow with a xp32 with jdk1,6...
at the moment I couldn't see anything which I'd mistaken..
everything is controlled and it seem that java find the j3d jars...otherwise it'll end all in NoClassDefError...so should be something inside...
if you got any ideas what to do - just let me know.
I am greedy to get it to run,
best wishes
rolf