title: How to run a 32bit JVM on a 64bit Linux?
body: <p>I'm trying to run a 32bit Hotspot JVM on a 64bit Debian Mint machine. At first sight it all works until you'll try to run something using Swing:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: /opt/javadev/jdk1.7.0_03_32b/jre/lib/i386/xawt/libmawt.so:   
  libXext.so.6: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>Adding that to the library path: <code>export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu</code>. </p>
  
  <p>But then it gives this error: </p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: /opt/javadev/jdk1.7.0_03_32b/jre/lib/i386/xawt/libmawt.so: 
  libXext.so.6: wrong ELF class: ELFCLASS64
  </code></pre>
  
  <p>Any idea what else has to be done here ?</p>