Page 1 of 1

no jogl in javalbrary.path

Posted: Fri 19. Mar 2010, 13:58
by ndroock1
I installed jReality as an Eclipse project using subversion. At the moment I am studying the tutorials and the Javadoc.
When I 'Run as a Java Application' the file ViewFromScratch.java I get the folloiwing messages in the Console window.

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:60)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)
at de.jreality.jogl.Viewer.initializeFrom(Viewer.java:80)
at de.jreality.jogl.AbstractViewer.<init>(AbstractViewer.java:104)
at de.jreality.jogl.AbstractViewer.<init>(AbstractViewer.java:99)
at de.jreality.jogl.Viewer.<init>(Viewer.java:62)
at de.jreality.jogl.Viewer.<init>(Viewer.java:59)
at de.jreality.tutorial.viewer.ViewerFromScratch.main(ViewerFromScratch.java:113)

What have I done wrong ? / should I do to run this file ?

P.S.

Is reading Mathematica graphics ( still ) supported in the current version of jReality?

Thank you. Kind regards,
nilo de roock

Re: no jogl in javalbrary.path

Posted: Sat 20. Mar 2010, 08:38
by steffen
See the "Test jogl" section in the eclipse setup tutorial http://www3.math.tu-berlin.de/jreality/ ... p_tutorial. You need to set adapt the native library location for your OS.

Steffen.

Re: no jogl in javalbrary.path

Posted: Thu 1. Apr 2010, 13:41
by sechel
If you use the JRViewer class, then the native path is guessed by jreality. This should work in most of the cases.
Stefan

Re: no jogl in javalbrary.path

Posted: Sat 26. Feb 2011, 10:03
by xuyan
I meet with the same problem, and thanks for the solution...

Re: no jogl in javalbrary.path

Posted: Tue 31. Jul 2012, 01:02
by ted
I see the same thing on new Viewer()
at de.jreality.tutorial.viewer.ViewerFromScratch.main(ViewerFromScratch.java:113)

If JRViewer can guess the native path correcly, couldn't Viewer be revised to do the same?