title: Missing libraries with oracle-java7-jdk in eclipse on ubuntu 12.04
body: <p>I recently installed the ubuntu 12.04 final beta</p>
  
  <p>After installing the oracle jdk from the webupd8 ppa, launching eclipse failed complaining about a missing shared library.</p>
  
  <pre><code>Can't load library: /home/bob/.swt/lib/linux/x86_64/libswt-gtk-3740.so
  </code></pre>
  
  <p>I searched around, and found this quesion: <a href="https://stackoverflow.com/questions/10165693/ubuntu-eclipse-cannot-load-swt-libraries-not-opening">Eclipse cannot load SWT libraries</a></p>
  
  <p>As the OP recommended, I tried switching to open-jdk, and that worked wonderfully. The problem, however, is that I am working on a project that doesn't support openjdk.</p>
  
  <p>I tried the second solution as well (the one by scott, which was just creating symbolic links to /usr/lib/jni/... in ~/.swt/lib/linux/x86_64/). Eclipse launches and everything is fine, but it still misses some libraries; this is what I get when i try to run my project:</p>
  
  <pre><code>Caused by: java.lang.UnsatisfiedLinkError: /tmp/libgdx/1352105074/libjogl_awt-linux64.so: libjawt.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I know libjawt.so is somewhere on my computer:</p>
  
  <pre><code>$ locate libjawt.so
  /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/libjawt.so
  /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libjawt.so
  </code></pre>
  
  <p>But eclipse or java seems to think that libraries should be placed in ~/.swt/lib/linux/x86_64, isn't that weird?</p>