6 Replies Latest reply: Mar 13, 2011 3:38 PM by jschellSomeoneStoleMyAlias RSS

    lwjgl.dll is not a valid win32 application JPCT

      A couple of days ago I found this jpct game engine and it looked good to me so I tried the example and
      whenever I run this example in eclipse this error happens.

      Here is the stack trace:
      Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Windows\System32\lwjgl.dll: %1 is not a valid Win32 application
           at java.lang.ClassLoader$NativeLibrary.load(Native Method)
           at java.lang.ClassLoader.loadLibrary0(Unknown Source)
           at java.lang.ClassLoader.loadLibrary(Unknown Source)
           at java.lang.Runtime.loadLibrary0(Unknown Source)
           at java.lang.System.loadLibrary(Unknown Source)
           at org.lwjgl.Sys$1.run(Sys.java:72)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
           at org.lwjgl.Sys.loadLibrary(Sys.java:81)
           at org.lwjgl.Sys.<clinit>(Sys.java:98)
           at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
           at com.reda.game.game.Main.main(Main.java:27)
      And here is the code for the example
      import com.threed.jpct.*;
      public class Main 
           public static void main(String[] args)
                World world = new World();
                world.setAmbientLight(0, 255, 0);
                TextureManager.getInstance().addTexture("texture1", new Texture("C:/Workspace/Resources/Game/Texture1.png"));
                Object3D box = Primitives.getBox(13, 2);
                world.getCamera().setPosition(50, -50, -5);
                FrameBuffer buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_NORMAL);
                while (!org.lwjgl.opengl.Display.isCloseRequested())
                              catch (Exception e) 
      I ran this program on:

      Acer Aspire One series
      Windows 7 Ultimate N 32bit

      By the way I made sure that the library was 32 bit not 64 bit.

      Edited by: 843450 on 10-Mar-2011 09:57