Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JOGL problem  (Read 1629 times)
0 Members and 1 Guest are viewing this topic.
Offline glitch83

Innocent Bystander

« Posted 2008-09-05 15:48:07 »

Hi I am assisting a java project that isn't mine and am receiving this Exception:

at java.awt.EventQueue.invokeAndWait(
at javax.swing.SwingUtilities.invokeAndWait(
at innards.Launcher.doLaunch(
at innards.Launcher.main(
Caused by: java.lang.UnsatisfiedLinkError: JAWT_GetAWT0
at com.sun.opengl.impl.JAWTFactory.JAWT_GetAWT0(Native Method)
at com.sun.opengl.impl.JAWTFactory.JAWT_GetAWT(
at com.sun.opengl.impl.JAWT$
at Method)
at com.sun.opengl.impl.JAWT.getJAWT(
at com.sun.opengl.impl.GLContextImpl.makeCurrent(
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(

I've read elsewhere that this is usually from a mismatch native binary problem. I'm using jdk5R16 & I have replaced all of their jogl stuff with 1.1.1 (jogl.jar jogl.dll jogl_awt.dll) So I can't seem to figure out what is wrong here. I have a few questions

I haven't moved any of the bin files into my ext directory b/c I hear that's naughty for web start applications and other reasons - is this "mismatch" between JDK & JOGL or between JOGL dlls? I've gotten all my binaries (i586 for windows) from the same zip file so I'd be surprised if they were mismatched... And I've replaced the JAR file in case this is a "mismatch" between jar & dlls. I'm also confused as to what purpose gluegen has - and why is there a gluegen-rt for windows and a gluegen.jnilib for macintosh?? (Without the -rt)

I'm doing all of this in eclipse ganymede and have included the jogl.jar in the project-preferences library but still nothing - I've also added the native path in the JRE environment in case it can't find the dlls.

Also in the code are many calls to 'loadLibrary' - do you need to loadlibrary for gluegen-rt instead of gluegen? --- I don't see any calls to loadLibrary for gluegen.. even tho it has a jar & dll.

The Installation instructions are also bogus - I see different installation instructions from different documents - some say put them in jre/lib/ext, and some say NONO b/c it breaks webstart and finally some say to keep it in the folders of the project you're working on to reduce dep conflicts.

Last piece of info is that I'm porting this from Mac to windows so if this may provide some extra context.

Please help,
Offline cylab

JGO Kernel

Medals: 180

« Reply #1 - Posted 2008-09-08 20:10:32 »

If there is a JOGL version mismatch, this is usually between the jars and the dlls. Normally this is caused by some jogl related dlls lying in some system folder (e.g windows/system32) or some jogl jars in the lib/ext directory. In your case, I guess there is a wrong jogl_awt.dll somewhere. This could be because you have forgotten a version somewhere or even because a "smart" installer of some jogl app has copied it to your system in a global folder or something.

The -rt suffix in "gluegen-rt" afaik stands for "runtime", since it is the runtime code needed to use gluegen generated bindings. I would guess the missing suffix for your jnilib is just a glitch, so don't bother.

I would advice to make a global system search for jogl*.* and gluegen*.* and remove anything you find. After that download the zip distribution again from here (I think you have to pay attention to either get the 32 or the 64 bit version in respect to your JDK, not your OS) and unzip it to a dedicated folder (mine is D:\development\libs\jogl). After that use this small tutorial, to make it work in eclipse:

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  

DesertCoockie (21 views)
2018-05-13 18:23:11

nelsongames (69 views)
2018-04-24 18:15:36

nelsongames (66 views)
2018-04-24 18:14:32

ivj94 (750 views)
2018-03-24 14:47:39

ivj94 (80 views)
2018-03-24 14:46:31

ivj94 (604 views)
2018-03-24 14:43:53

Solater (96 views)
2018-03-17 05:04:08

nelsongames (169 views)
2018-03-05 17:56:34

Gornova (387 views)
2018-03-02 22:15:33

buddyBro (1047 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!