I am doing my first attempts to use libpd
with java. The IDE I am using is NetBeans. For libpd I am using these binary builds for Java.
When running the code I get a java.lang.UnsatisfiedLinkError. At some poit it says:
Can't find dependent libraries
I've seen a similar question answered for Android, but not for Java.
EDIT: this is the full error-message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\jaiserpe\AppData\Local\Temp\pdnative7141399841793639340.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.puredata.core.NativeLoader.loadLibraryFromJar(NativeLoader.java:121) at org.puredata.core.NativeLoader.loadLibrary(NativeLoader.java:97) at org.puredata.core.PdBase.(PdBase.java:59) at holamundo.HolaMundo.main(HolaMundo.java:26) C:\Users\jaiserpe\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)
It seems that you are missing dependent libraries of
libpd
.You can use DepndencyWalker to inspect what is missing.
If you think that all required libraries are there, make sure that they are visible to JVM for loading. More info about loading DLLs on Windows here.