no jogl in javalbrary.path

Have jReality programming problems or questions? Post them here.
Post Reply
ndroock1
Posts: 5
Joined: Wed 10. Mar 2010, 22:31
Location: Rotterdam

no jogl in javalbrary.path

Post by ndroock1 » Fri 19. Mar 2010, 13:58

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

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: no jogl in javalbrary.path

Post by steffen » Sat 20. Mar 2010, 08:38

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.

sechel
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Re: no jogl in javalbrary.path

Post by sechel » Thu 1. Apr 2010, 13:41

If you use the JRViewer class, then the native path is guessed by jreality. This should work in most of the cases.
Stefan

xuyan
Posts: 1
Joined: Sat 26. Feb 2011, 10:00

Re: no jogl in javalbrary.path

Post by xuyan » Sat 26. Feb 2011, 10:03

I meet with the same problem, and thanks for the solution...

ted
Posts: 57
Joined: Wed 25. Jul 2012, 22:53

Re: no jogl in javalbrary.path

Post by ted » Tue 31. Jul 2012, 01:02

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?

Post Reply