This discussion is archived
6 Replies Latest reply: Mar 13, 2011 1:38 PM by jschellSomeoneStoleMyAlias RSS

lwjgl.dll is not a valid win32 application JPCT

846453 Newbie
Currently Being Moderated
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$
     at Method)
     at org.lwjgl.Sys.doLoadLibrary(
     at org.lwjgl.Sys.loadLibrary(
     at org.lwjgl.Sys.<clinit>(
     at org.lwjgl.opengl.Display.<clinit>(
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


  • Correct Answers - 10 points
  • Helpful Answers - 5 points