title: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
body: <p>Fedora using right now (package is installed <code>Package rxtx-2.2-0.5.20100211.fc15.i686 already installed and latest version
  </code>).</p>
  
  <p>I have used/tried:</p>
  
  <pre><code># locate librxtxSerial
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/librxtxSerial.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Linux/ia64-unkown-linux-gnu/librxtxSerial.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Mac_OS_X/librxtxSerial.jnilib
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so
  /home/sun/Downloads/rxtx-2.1-7-bins-r2/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so
  /usr/lib/rxtx/librxtxSerial-2.2pre1.so
  /usr/lib/rxtx/librxtxSerial.so
  </code></pre>
  
  <p>Then used:</p>
  
  <pre><code>-Djava.library.path=/usr/lib/rxtx/librxtxSerial.so -Djava.library.path=/usr/lib/jni
  </code></pre>
  
  <p>But still i get always this following:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
  Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
      at java.lang.Runtime.loadLibrary0(Runtime.java:840)
      at java.lang.System.loadLibrary(System.java:1047)
      at gnu.io.CommPortIdentifier.&lt;clinit&gt;(CommPortIdentifier.java:83)
      at main.Tty.sendCommand1(Tty.java:212)
      at main.Tty.main(Tty.java:236)
  </code></pre>
  
  <p>How to resolve this ?</p>
  
  <p><strong>Follow up:</strong></p>
  
  <p>WRONG: </p>
  
  <p><code>-Djava.library.path=/usr/lib/rxtx -Djava.library.path=/usr/lib/jni</code></p>
  
  <p>CORRECT</p>
  
  <p><code>-Djava.library.path=/usr/lib/jni -Djava.library.path=/usr/lib/rxtx</code></p>