title: NetBeans 7.1 building error : java.lang.UnsatisfiedLinkError libXtst.so.6: wrong ELF class: ELFCLASS64
body: <p>I can't build my project using jdk 1.7.0 due to following error on NetBeans 7.1 whereas the same one works well on Eclipse with jdk 1.7.0. Does anyone know how can I resolve this issue ? </p>
  
  <pre><code>Output:
  Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk.1.7.0/jre/lib/i386/xawt/libmawt.so:         libXtst.so.6: wrong ELF class: ELFCLASS64
  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
  at java.lang.Runtime.load0(Runtime.java:792)
  at java.lang.System.load(System.java:1059)
  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
  at java.lang.Runtime.loadLibrary0(Runtime.java:845)
  at java.lang.System.loadLibrary(System.java:1084)
  at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
  at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
  at java.awt.Toolkit.&lt;clinit&gt;(Toolkit.java:1670)
  at java.awt.Component.&lt;clinit&gt;(Component.java:595)
  Java Result: 1
  </code></pre>