title: java.lang.UnsatisfiedLinkError error on linux
body: <p>I have a third party java application called MITIE that I am currently testing to potentially integrate it into a java project. I have compiled the code and can run it using the following script (run.sh):</p>
  
  <pre><code>export LD_LIBRARY_PATH=/opt/MITIE/mitielib
  export CLASSPATH=/opt/MITIE/mitielib/javamitie.jar:.
  
  javac NerExample.java
  java NerExample
  </code></pre>
  
  <p>Everything runs fine. What I want to do is be able put the export commands in my ~/.bashrc so I can run this library within a java project or just type java NerExample on the command line and not have to worry about setting the LD_LIBRARY_PATH or CLASSPATH.</p>
  
  <p>I added the two export statements to my ~/.bashrc profile and then removed them from the script and I get the error: </p>
  
  <pre><code>Native code library failed to load. 
  java.lang.UnsatisfiedLinkError: no javamitie in java.library.path
  </code></pre>
  
  <p>If I put the export statements back into the script it works. My question is, is it possible to set these globally on my system?</p>