Linking Error?

Started by Haquejiel, September 01, 2004, 17:59:29

Previous topic - Next topic

Haquejiel

I'm running a basic application with LWJGL. This is the full extent of the code:

import org.lwjgl.*;
import org.lwjgl.opengl.*;
import org.lwjgl.input.*;

public class Iggy extends Object {
    public static void main(String args[]) {
        try {
            Window.create("Iggy!", 100, 100, 20, 20, Display.getDepth(), 0, 8, 0, 0);
            Mouse.setGrabbed(true);
            GL11.glEnable(GL11.GL_TEXTURE_2D);
            
            // disable the OpenGL depth test since we're rendering 2D graphics
            GL11.glDisable(GL11.GL_DEPTH_TEST);
        }
        catch (Exception e) {
            System.out.println(e);
        }
    }
}


It compiles. No warnings, no errors.
It gives me this when I run it:

java.lang.UnsatisfiedLinkError: C:\X\j2sdk1.4.2_05\jre\bin\lwjgl.dll: One of the library files needed to run this application cannot be found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at org.lwjgl.Sys.initialize(Unknown Source)
        at org.lwjgl.Sys.<clinit>(Unknown Source)
        at org.lwjgl.Display.<clinit>(Unknown Source)
        at Iggy.main(Iggy.java:8)
Exception in thread "main"


I followed the installation instructions listed at
 http://lwjgl.org/wiki/tiki-index.php?page=Installing+LWJGL
to the t. I am using Windows (ME).

I already know I'm doing something stupid. Between my operating system, my computer, and me, the file index of my computer has the organizational skills of a moldy biscuit.
Am I missing one of the vital OpenGl .dlls that belong somewhere in Windows\System, or am I just doing something stupid in a more direct manner (such as in the code?)

Any help would be appreciated. =)

  - Felix Haquejiel[/code]

Haquejiel

Well, it's fixed now. The problem is as such (in case anyone is interested):

I screwed up my computer! Simple as that. While I was fighting with JOGL to try and get it to work, my native opengl dlls were somehow corrupted.

One reformat and total system reinstallation later and LWJGL is working. Whoo!

Now I get to figure out how it bloody works. :-D