Talk:OpenGL:Tutorials:Java:JOGL:Introduction

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

<Note from a reader: You may want to use Frame instead of JFrame. JOGL is much slower in lightweight swing applications because GLCanvas is a heavyweight object.>

Also please note that setting fullscreen window is problematic with jogl on version "1.4.2_08-b03". It probably works without the fullscreen part.

Hm, I never considered that. Java 5 has been out for a while though, maybe it is you who should upgrade. :P --Dial-Up 20:54, 14 Jun 2005 (EDT)


Anonymous user wrote: And if you get the following: "Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)"

Then..... ?

Make sure that the files are in the proper directories. Remember that the "natives" JAR file actually needs to be extracted. --Dial-Up 22:25, 28 Jun 2005 (EDT)

JOGL import problems

This looks like a great tutorial--unforturnately I haven't been able to run it. I've been reading through this tutorial after reading over several others and I've found that some tutorials refer to javax.media.opengl.*; as the proper JOGL import path (such as http://thepanda.org/article/joglness half way down the page) while this tutorial and others refer to net.java.games.jogl.*;. Based on the version I got from the website I can import the javax mentioned above and not the net extension. Under an earlier installation of OpenGL (and yet another tutorial), the opposite was true. In both cases I followed the process of extracting the native JOGL jar to the bin folder while the main jar was placed in the lib/ext folder.

  • I figured this issue out: for JOGL version 1.x, the proper import path is

import net.java.games.jogl.*; Version 2.0 requires an import path of javax.media.opengl.*; Unfortunately this doesn't seem to be documented anywhere.