Native libs in plugins

What is the procedure for including native libraries in plugins? I suppose they could be dropped into /resources, but that would mean more than one file to distribute (jar + native lib files).

It´s not the best solution I think, but for now is the only one. And it works.

Try add this code block in your plugin initialize() method:

try {
               Class clazz = ClassLoader.class;
               Field field = clazz.getDeclaredField("sys_paths");
               boolean accessible = field.isAccessible();
               if (!accessible)
                    field.setAccessible(true);
               Object original = field.get(clazz);
               field.set(clazz, null);
               try {
                    System.setProperty("java.library.path",
                              "C:Spark plugins yourplug");
                    System.loadLibrary("jmdaudc");
               } finally {
                    field.set(clazz, original);
                    field.setAccessible(accessible);
               }
          } catch (Exception e) {           }

Remeber to customize the paths to your paths.

Hope it helps.