After the latest change http://www.jmonkeyengine.com/jmeforum/index.php?topic=10946.0 I tried my game in 64 bit and it worked fine inside Eclipse. But I cannot get it working when packing it into a fat jar and trying to run it from outside eclipse. This is the error I get:
C:UsersHaladriaDesktopTest>java -jar ImperiiFat64.jar
Imperii Started
2009-apr-19 16:18:46 com.jmex.game.DefaultUncaughtExceptionHandler uncaughtExcep
tion
ALLVARLIG: Main game loop broken by uncaught exception
java.lang.UnsatisfiedLinkError: C:UsersHaladriaDesktopTestlwjgl.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(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:129)
at com.jme.system.lwjgl.LWJGLDisplaySystem.setTitle(LWJGLDisplaySystem.j
ava:117)
at com.jmex.game.StandardGame.initSystem(StandardGame.java:290)
at com.jmex.game.StandardGame.run(StandardGame.java:210)
at java.lang.Thread.run(Unknown Source)
I have copied the dll's (both 32 and 64 bit) to the same folder as I am executing this command from. And the game works fine if I use the 32-bit version of java. Do I need to do something more to get this working?
The error message says that it tries to run the 32 bit version but why? Can I configure that somewhere?