Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: JOGL

  1. #1
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default JOGL

    I tried setting up JOGL with eclipse, and followed the instructions on this website. However, I ended up with the same error when i try running the windows initializer and the applet initializer:
    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)
    	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(Unknown Source)
    	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 javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90)
    	at test.Lesson01Applet.init(Lesson01Applet.java:25)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)

    Is there something wrong with the website instructions (I'm using Eclipse Ganymede and Java 1.6, along with JOGL 1.1.1). Also, is there another (possibly better) way to interface OpenGL with Java?


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,282
    My Mood
    Happy
    Thanks
    70
    Thanked 158 Times in 154 Posts

    Default Re: JOGL

    I ended up putting my jogl*.dll files in C:\WINDOWS\system32

    // Json

  3. The Following User Says Thank You to Json For This Useful Post:

    helloworld922 (July 20th, 2009)

  4. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JOGL

    Wow, that was more trouble than it should have been... I don't like messing around with WINDOWS/system32, but i found out that if you import the .dll files into the project (top level) it works!

  5. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,282
    My Mood
    Happy
    Thanks
    70
    Thanked 158 Times in 154 Posts

    Default Re: JOGL

    Brilliant, you got it working then I take it. Let me know if you get into any more problems and I will see if I can help you out. It's not that difficult getting your first app up and running though.

    // Json