Howdy Y’all -This is my first post!!
Programming has been a hobby of mine for about two years now, and I’m trying to make the leap from Actionscript to Java.
So I Installed jdk1.5.0_06, the latest one, in “C:\Program Files\Java\jdk1.5.0_06” on my WinXP machine and dropped “set PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_06\bin” in autoexec.bat so my shell can see the bytecode utilities. All the native classes compile and run without complaint both from the command line and in Eclipse.
It all workes fine and dandy… then I try to install JOGL
“jogl.jar” and “jogl-natives-windows-i586.jar” have been downloaded to “C:\Program Files\Java\Extra\JOGL”, and I “unjared” the natives file in the same directory. I’ve read lots of opinions on Google about what to do next, and I interpereted that most of them wanted me to set my PATH and CLASSPATH variables, so I did it with the following commands:
“set CLASSPATH=.; C:\Program Files\Java\Extra\JOGL\jogl.jar”
“set PATH=%PATH%;C:\Program Files\Java\Extra\JOGL”
again in autoexec.bat. I figure that the JRE should be able to see the installation files now, so I test with a quickie program that’ll get the gears goin’ : “b.java”
"
import net.java.games.jogl.*;
class b {
public static void main(String[] args) {
GLCapabilities bob = new GLCapabilities();
GLCanvas Canvas = GLDrawableFactory.getFactory().createGLCanvas(bob);
}
}
"
Yes, its a pointless program… but remember it’s only a test
Eclipse can see the jogl classes and says there are no errors in this program, and “javac” compiles this code just fine; but, the “java” command presents the following error paragraph in the console at runtime:
"Exception in thread “main” java.lang.UnsatisfiedLinkError: JAWT_GetAWT0
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:78)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.jogl.impl.NativeLibLoader.load(NativeLibLoader.java:58)
at net.java.games.jogl.impl.GLContext.(GLContext.java:52)
at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:147)
at net.java.games.jogl.GLCanvas.(GLCanvas.java:72)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85)
at b.b.main(b.java:9)
"
I figure it’ll be awhile before I’ll be able to make sense of that mess on my own… so does anybody see where this installation has gone wrong?
My guess is that my JRE can see jogl.jar, but can’t read my library. If this is so, I can’t figure how I’d go about fixing it. I’m not about to go dropping files in my JRE installation or anything like that…