wrong ELF class: ELFCLASS64
<p>I have a java application which tries to load external libraries but I keep getting the same exception.</p>

<pre><code>Caused by: java.lang.UnsatisfiedLinkError: /test/software/libraries/libraries/bin/libxejni.so: ld.so.1: java: fatal: /test/software/libraries/libraries/bin/libxejni.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.7.0_79]
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) ~[?:1.7.0_79]
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) ~[?:1.7.0_79]
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880) ~[?:1.7.0_79]
    at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_79]
    at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_79]
</code></pre>

<p>This is appartantly got to do with a 32-bit JVM trying to load a 64-bit native shared library. However my java version is 64 bit</p>

<blockquote>
  <p>java version "1.7.0_79" Java(TM) SE Runtime Environment (build
  1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)</p>
</blockquote>

<p>The applicaton is build using maven, anyone have any clue what the issue could be here?</p>

<p>Thanks</p>