JOGL and Ubuntu problem!

So I download JOGL and installed it somehow right way but when I try to run any program what contains JOGL I get error:

Exception in thread “main” java.lang.UnsatisfiedLinkError: no jogl.jar 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 Demo.main(Demo.java:12)

So where I have to add that jogl.jar?I am using Ubuntu and Eclipse!I tryed to sreach help from Google but I didn’t find anything. >:(

See this tutorial: http://splainhow.com/jogl_eclipse.html and take a look at the “Local Installation for development” section in the JOGL User GUide (https://jogl.dev.java.net/nonav/source/browse/checkout/jogl/doc/userguide/index.html?rev=HEAD&content-type=text/html)

I tryed to add Native Librarys but I get that same error.I added those gluegen.jar or what ever it was and jogl.jar again and tryed to replace that with new jogl.jar old jogl.jar but that didnt help. =(

This should work. Please reread the two articles and try to find out, if you did something different. Take special care when setting the directory that contains the natives. You must set the folder for the correct platform. That’s either “linux-i586” for 32Bit or “linux-amd64” for 64Bit depending on the kind of JVM you have installed.

I tryed to use one JOGL cube example from programming website, but I get error like this:

Exception in thread “main” java.lang.UnsatisfiedLinkError: net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT0(Ljava/nio/Buffer;)Z
at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT0(Native Method)
at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT(JAWTFactory.java:37)
at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.jogl.impl.NativeLibLoader.(NativeLibLoader.java:46)
at net.java.games.jogl.impl.x11.X11GLContextFactory.(X11GLContextFactory.java:50)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at net.java.games.jogl.impl.GLContextFactory.getFactory(GLContextFactory.java:69)
at net.java.games.jogl.GLJPanel.(GLJPanel.java:89)
at net.java.games.jogl.GLDrawableFactory.createGLJPanel(GLDrawableFactory.java:193)
at net.java.games.jogl.GLDrawableFactory.createGLJPanel(GLDrawableFactory.java:160)
at JoogliDemo.main(JoogliDemo.java:24)

i didi everything like in that Eclipse quide told!Whats the problem?

This looks like either a version conflict or a platform conflict. If you have previously installed jogl to somewhere global (like the jre/ext directory), make sure to remove this installation.

I deleted files from ext (I putted them to there earlier), but now I must use com.sun.opengl because it is new version of JOGL.But still I get error.Eclipse gives error from Animator and something stuff like that.Before i deleted jogl from ext it didnt do that same.So do I have to put them back to ext?

No, don’t put jogl to ext - this gives a lot of problems (as you are experiencing right now). Use this example as a starting point: http://www.java-gaming.org/index.php/topic,1474.msg145318.html#msg145318

Well now i get something working!Thanks!But I have only one problem yet!I run that your program but it doesnt draw anything to window!It gives lot of error but I get window!That good!Thanks! :slight_smile:

I get JOGL to work on this computer (finally).I have 2 computers, but on other I dont get it to work.Something is wrong with it.I must just try some ways to fix the problem in it.But thanks a lot cylab!