title: Can not include vlc library in java application
body: <p>i'm try to create media player for clients using vlcj with out need to install VLC in their PCs, from VLC.</p>
  
  <p>i take this code from official site of VLC it work fine until i add EmbeddedMediaPlayerComponent() it get error</p>
  
  <p>when i use </p>
  
  <blockquote>
    <p>new NativeDiscovery().discover();</p>
  </blockquote>
  
  <p>it work fine because i installed VLC in my PC</p>
  
  <p>but when i use </p>
  
  <blockquote>
    <p>private static final String NATIVE_LIBRARY_SEARCH_PATH = "C:\\Program
    Files\\VideoLAN\\VLC";</p>
    
    <p>NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(),NATIVE_LIBRARY_SEARCH_PATH);</p>
    
    <p>Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);</p>
  </blockquote>
  
  <p>this is error log </p>
  
  <pre><code>14:49:08.471 [main]                  INFO                                                   uk.co.caprica.vlcj.Info - vlcj: 3.10.1
  14:49:08.482 [main]                  INFO                                                   uk.co.caprica.vlcj.Info - java: 1.8.0_131 Oracle Corporation
  14:49:08.482 [main]                  INFO                                                   uk.co.caprica.vlcj.Info - java home: C:\Program Files\Java\jre1.8.0_131
  14:49:08.483 [main]                  INFO                                                   uk.co.caprica.vlcj.Info - os: Windows 10 10.0 amd64
  
  
   V: 2.2.6 Umbrella
  14:49:08.831 [AWT-EventQueue-0]      DEBUG                uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent - args=[--video-title=vlcj video output, --no-snapshot-preview, --quiet-synchro, --sub-filter=logo:marq, --intf=dummy]
  14:49:08.841 [AWT-EventQueue-0]      DEBUG                             uk.co.caprica.vlcj.player.MediaPlayerFactory - initX=null
  14:49:08.853 [AWT-EventQueue-0]      INFO                                  uk.co.caprica.vlcj.binding.LibVlcFactory - vlc: 2.2.6 Umbrella, changeset 2.2.6-0-g1aae789
  14:49:08.854 [AWT-EventQueue-0]      INFO                                  uk.co.caprica.vlcj.binding.LibVlcFactory - libvlc: C:\Program Files\VideoLAN\VLC\libvlc.dll
  14:49:08.854 [AWT-EventQueue-0]      DEBUG                             uk.co.caprica.vlcj.player.MediaPlayerFactory - MediaPlayerFactory(libvlc=Proxy interface to Native Library &lt;C:\Program Files\VideoLAN\VLC\libvlc.dll@1723334656&gt;,libvlcArgs=[--video-title=vlcj video output, --no-snapshot-preview, --quiet-synchro, --sub-filter=logo:marq, --intf=dummy])
  14:49:08.855 [AWT-EventQueue-0]      DEBUG                             uk.co.caprica.vlcj.player.MediaPlayerFactory - jna.library.path=null
  14:49:08.856 [AWT-EventQueue-0]      DEBUG                             uk.co.caprica.vlcj.player.MediaPlayerFactory - VLC_PLUGIN_PATH=null
  [00000000007ecfc0] core libvlc error: No plugins found! Check your VLC installation.
  14:49:08.887 [AWT-EventQueue-0]      DEBUG                             uk.co.caprica.vlcj.player.MediaPlayerFactory - instance=null
  14:49:08.888 [AWT-EventQueue-0]      ERROR                             uk.co.caprica.vlcj.player.MediaPlayerFactory - Failed to initialise libvlc
  Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Failed to initialise libvlc.
  
  This is most often caused either by an invalid vlc option being passed when creating a MediaPlayerFactory or by libvlc being unable to locate the required plugins.
  
  If libvlc is unable to locate the required plugins the instructions below may help:
  
  In the text below &lt;libvlc-path&gt; represents the name of the directory containing "libvlc.dll" and "libvlccore.dll" and &lt;plugins-path&gt; represents the name of the directory containing the vlc plugins...
  
  For libvlc to function correctly the vlc plugins must be available, there are a number of different ways to achieve this:
   1. Make sure the plugins are installed in the "&lt;libvlc-path&gt;/plugins" directory, this should be the case with a normal vlc installation.
   2. Set the VLC_PLUGIN_PATH operating system environment variable to point to "&lt;plugins-path&gt;".
  
  More information may be available in the log.
  
  at uk.co.caprica.vlcj.player.MediaPlayerFactory.&lt;init&gt;(MediaPlayerFactory.java:300)
      at uk.co.caprica.vlcj.player.MediaPlayerFactory.&lt;init&gt;(MediaPlayerFactory.java:259)
      at uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent.onGetMediaPlayerFactory(EmbeddedMediaPlayerComponent.java:349)
      at uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent.&lt;init&gt;(EmbeddedMediaPlayerComponent.java:217)
      at tutorial.Tutorial.&lt;init&gt;(Tutorial.java:68)
      at tutorial.Tutorial$1.run(Tutorial.java:49)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
  </code></pre>
  
  <p>can you help me to bundle up VLC to my project </p>