I'm trying to set up an environment in Eclipse where I can develop a game utilizing Jirr.
I've been following along with this helpful tutorial:
http://www.brighthub.com/internet/web-d ... 15493.aspx
I copied the source code from that tutorial (from the "Getting Started" section's example in particular). I then set up Eclipse to link to the Jirr JARs and set the library build path to the folder where the DLL's are located. Compilation went fine, but running the application resulted in this exception being thrown:
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Josh\Documents\Eclipse projects\client\jirrtest\lib\D3DX81ab.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 Start.main(Start.java:6)
[code System.loadLibrary("D3DX81ab");[/code]
The meaning of the exception seems obvious: my system is a 64-bit machine, and the DLL was compiled for 32-bit machines. I'd have imagined it to run fine regardless as the majority of 32-bit applications do, but as we see here, that's not the case.
The only solution I see right now would be to compile 64-bit versions of the DLL's myself. Two concerns arise there, however:
1. I'm not entirely sure about how to go about doing that, but more importantly..
2. I want to ensure that my users (on both 32-bit and 64-bit machines) can run my application fine. Will this be an issue?
I realize Jirr's hasn't seen much life lately (unfortunately), but if someone could help me get past this hurdle, I would very greatly appreciate it.