I'm trying to use a JNA library in my project.
My situation is as follows:
I have an applet that shows camera input.
If I run the Applet using the command run as applet I get the correct result:
an applet that shows the camera input
If I remove jna.jar from the build path it gives me error as expected.
If I rename the directory of the native plugins it gives me error as expected.
If I try to run the whole application I get the error:
GStreamer-WARNING **: Failed to load plugin C:/Users/aaa/Desktop/bbb/ccc/video/library/\windows64\plugins\libgstwavparse.dll on 30+ dlls
The path C:/Users/aaa/Desktop/bbb/ccc/video/library/\windows64\plugins\
is the one that if renamed makes the applet crash (so the correct one) and jna.jar and the library that used by JNA are imported in each project involved: the root project from which the application is started and the view project that instantiates the camera showing applet.
As previously suggested, I have tried
System.setProperty("jna.library.path","C:/Users/aaa/Desktop/bbb/ccc/video/library/windows64/plugins/" );
etc... in all possible forms to reference the correct directory but to no avail.
The library is a 3rd party library and actually should work.
The problems may be in my total lack of knowledge of JNA and/or Gstreamer or even of some basics at this point.
Is there any workaround? Why do the applet and application that instantiates the applet work differently when referencing DLLs... or Gstreamer DLLs... or the Processing 2.2.1 included Gstreamer DLLs?