LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Clbembry on February 23, 2011, 14:58:39

Title: Can't load IA 32-bit .dll on a AMD 64-bit platform
Post by: Clbembry on February 23, 2011, 14:58:39
When I try and compile I get this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Clinton\Documents\LWJGL\lwjgl-2.7.1\native\windows\lwjgl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at org.lwjgl.Sys$1.run(Sys.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
        at org.lwjgl.Sys.loadLibrary(Sys.java:84)
        at org.lwjgl.Sys.<clinit>(Sys.java:101)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:128)
        at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
        at SimpleGame.SimpleGame.main(SimpleGame.java:38)
Java Result: 1


I never saw an option to download a 64-bit version on the downloads page. What should I do?
Title: Re: Can't load IA 32-bit .dll on a AMD 64-bit platform
Post by: kappa on February 24, 2011, 00:09:31
there is no separate download bundle for the 64bit version, the LWJGL download bundle contains natives for both 32bit and 64bit.
Title: Re: Can't load IA 32-bit .dll on a AMD 64-bit platform
Post by: Matthias on February 24, 2011, 00:23:55
See here: [RFE] Load 64bit natives first when the JVM is a 64bit (http://lwjgl.org/forum/index.php/topic,3585.0.html)
Title: Re: Can't load IA 32-bit .dll on a AMD 64-bit platform
Post by: Clbembry on February 24, 2011, 01:00:18
Thankyou Mathias, you seem to have the answers to all of my questions  :P