Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
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 1140 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:

java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:853)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
at innards.Launcher.doLaunch(Launcher.java:176)
at innards.Launcher.main(Launcher.java:111)
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(JAWTFactory.java:38)
at com.sun.opengl.impl.JAWT$1.run(JAWT.java:99)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:95)
at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.lockSurface(WindowsOnscreenGLDrawable.java:163)
at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnscreenGLContext.java:57)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:265)
at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
at innards.graphics.gl.TrivialGLContext.display(TrivialGLContext.java:205)

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,
~Frustrated
Offline cylab

JGO Ninja


Medals: 43



« 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 https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=9260&expandFolder=9260&folderID=8767 (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: http://splainhow.com/jogl_eclipse.html


Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (14 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!