title: wrong ELF class: ELFCLASS32
body: <p>I'm getting this error pointing to some .so file when running my application on a Solaris machine. However, the application runs just fine in my Windows machine. If I'm not mistaken, my application is expecting for the 64-bit version but I only have a 32-bit version of the .so file in the Solaris machine. Is there a way I can fix this so it will use the 32-bit version instead? I understand it has nothing to do with the bytecodes but probably with the JVM. I tried running using -d32 or -d64 but it has no effect.</p>
  
  <p>UPDATE:</p>
  
  <p>This is the exact error: </p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: librvjs11.so: ld.so.1: java: fatal: librvjs11.so: wrong ELF class: ELFCLASS32&lt;br&gt;
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)&lt;br&gt;
      at java.lang.ClassLoader.loadLibrary0(Unknown Source)&lt;br&gt;
      at java.lang.ClassLoader.loadLibrary(Unknown Source)&lt;br&gt;
      at java.lang.Runtime.loadLibrary0(Unknown Source)&lt;br&gt;
      at java.lang.System.loadLibrary(Unknown Source)&lt;br&gt;
  </code></pre>
  
  <p>I've already updated LD_LIBRARY_PATH so it includes the directory containing the file above.</p>