title: vlc4j fails to load libvlc.so
body: <p>I am currently trying to programm a little webradio in Java on my raspberry pi (OS is raspibian). I wanted to use the VLC library, as it is capable of decoding nearly every stream automatically.
  But I'm not even able to load the library on my Raspberry (no problems with Win 7). I am currently using vlc 2.1.3 (compiled it myself), therefor i use Lib4j 3.0.0 with JNA 4.0.0 and added the path of the library to the searchppath via</p>
  
  <pre><code>NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), "/home/pi/vlc-2.1.3/lib/.libs/"); 
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>System.setProperty("jna.library.path","/home/pi/vlc-2.1.3/lib/.libs/");
  </code></pre>
  
  <p>and adding it via </p>
  
  <pre><code>-Djna.library.path=/home/pi/vlc-2.1.3/lib/.libs/
  </code></pre>
  
  <p>when executing the jar, but i always get the error: </p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'vlc': Native library (linux-arm/libvlc.so) not found in resource path ([file:/home/pi/JavaProjects/Radio/Radio-release.jar])
      at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
      at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
      at com.sun.jna.Library$Handler.&lt;init&gt;(Library.java:147)
      at com.sun.jna.Native.loadLibrary(Native.java:412)
      at com.sun.jna.Native.loadLibrary(Native.java:391)
      at main.Radio.&lt;init&gt;(Unknown Source)
      at main.Main.main(Unknown Source)
  </code></pre>
  
  <p>I tried everything I found on the net about this and asked this question a few times before elsewhere but noone seems to know anything about it.</p>
  
  <p>Has anyone encountered similar problems or does know the answer? (perhaps it is pretty simple, i hope so at least).</p>
  
  <p>Thanks in advance for your help,</p>
  
  <p>TheElk</p>
  
  <p>--
  Sorry for my probably bad english, I'm no native speaker :/</p>