Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12046 Posts in 1593 Topics- by 597 Members - Latest Member: Cydfewoot

21. May 2013, 03:34:01 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)jogl Exception
Pages: [1]
Print
Author Topic: jogl Exception  (Read 398 times)
captain ahab
Just dropped in

Offline Offline

Posts: 1


View Profile
« on: 04. January 2012, 05:06:27 pm »

I'm using a Canvas3DJPanel inside of a tabbed page. When I click the tab I get this run-time exception:


Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)

I'm not sure what to do. The jogl.jar file is in the xith3d source code I downloaded from svn. I'm pretty sure I've got everything referenced right, but any suggestion would be appreciated.   
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #1 on: 04. January 2012, 10:53:41 pm »

You need to setup the native libraries to point to the right files. I guess, you checked it out on Windows and are using Eclipse, right? You need to go to the project properties, edit the java build path, expand jogl.jar and switch the natives to the correct ones for your platform. Do the same for gluegen.

Maybe you also want to consider using Canvas3DPanel instead of Canvas3DJPanel. It is a lot faster.
Logged
Julien Gouesse
Enjoying the stay
*
Offline Offline

Posts: 29



View Profile WWW
« Reply #2 on: 22. February 2012, 04:05:32 pm »

Hi

Setting the Java library path is not required when using JOGL 2.0, you just have to put the JARs containing the native libraries into the same directory than jogl.all.jar and JOGL automatically extracts them and loads them.

Canvas3DPanel is more reliable and faster but we could get further with NEWT (native windowing system of JOGL).
Logged

http://tuer.sourceforge.net (first person shooter written in Java by Julien Gouesse)
http://gouessej.wordpress.com (personal blog)
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic