On a 64-bit JVM, in Linux, whatever does the native library loading insists on trying to load the 32-bit library.
I'm asking this as a clojure and (even moreso) java n00b.
The answers I've found so far (Using lwjgl in Leiningen/Clojure seems to be the most prominent in search results) seem to be for older versions of lein, with issues swirling around the :native-dependencies or LD_LIBRARY_PATH in project.clj.
I'm re-inventing the wheel and translating the basic jME tutorials into clojure as a little personal homework assignment toward learning them both. In all the tutorials and examples I've found so far of people showing how they did this, this part seems to "just work."
(It worked fine for me under Windows, for that matter).
I'm using lein to build a new, empty project. I've set up dependencies on various versions of the jMonkeyEngine libraries on clojars. After 'lein deps', liblwjgl64.so and libopenal64.so wind up in the root of my project directory.
When I try to 'lein run', it shows the monkey splash screen for the settings, then it throws an exception when it tries to actually run because it's trying to load liblwjgl.so.
That file is present under target/native/linux and target/native/linux64 (though, oddly enough, not under target/native/linux32).
If I copy the file it wants into my project's root, the error changes to "wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)" which is the other set of discussions that google keeps giving me. The solutions mentioned there all seem to amount to "Switch to a 32-bit JVM to get Minecraft working", but I'd much rather get an actual clue about what's going on.
This problem is very consistent across every set of dependency libraries I could get my hands on in clojars (back to version 2, anyway...those had bigger issues that didn't seem to be worth digging into). The charles-stain set "Just Worked" for me on windows.
The best hypothesis I've been able to come up with so far runs something along these lines:
I suspect that a version must get specified at some point. http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html#resources mentions a resources property that looks like a perfect fit, but this doesn't seem to have anything to do with JNLP. I'm wondering if there's a manifest file sitting around somewhere in a .jar that I haven't been able to find (here's where my n00bishness comes into play...I don't really have a clue what I'm looking for).
So, does anyone have any pointers about where I should look or who I should ask? I don't know enough to even know where to go from here. Would it make more sense to pester the jMonkeyEngine forums, #clojure, or the lwjgl mailing list (or whatever they use...I haven't actually looked into their side of things at all...should I?)
The next thing I'm going to try is bundling up the jME libraries into my own repository. That seems like a big, daunting enough task that I decided to ask on here while I'm tackling that angle.
I know this is vague, and I apologize for that. My google-fu has failed me. I'd appreciate any suggestions anyone can come up with.
Thanks in advance!