title: Eclipse: LD_LIBRARY_PATH, OpenJDK and libjpeg
body: <p>On my development machine (Linux) I have not set <code>LD_LIBRARY_PATH</code> at all, as the libraries I'm using are either in default directories or I've added them to <code>ld.conf</code>.</p>
  
  <p>But when I'm using Eclipse, my <code>LD_LIBRARY_PATH</code> is set to: </p>
  
  <pre><code>"/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:
  /usr/lib/jvm/java-6-openjdk/jre/lib/i386:
  /usr/lib/xulrunner-1.9.2.17:
  /usr/lib/xulrunner-1.9.2.17"
  </code></pre>
  
  <p>(added line breaks for readability).</p>
  
  <p>I don't mind xulrunner ones, but the OpenJDK causes my apps to load</p>
  
  <pre><code>/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libjpeg.so
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>/usr/lib/libjpeg.so
  </code></pre>
  
  <p>Which lead to subsequent fail, as the one from OpenJDK is 6b, while I'm using libjpeg 8.</p>
  
  <p>I know I can override <code>LD_LIBRARY_PATH</code> while compiling C++, but it fails as soon as I try to execute Python code linking the shared libraries I've just compiled. </p>
  
  <p>How can I change this global <code>LD_LIBRARY_PATH</code>? </p>