java.lang.UnsatisfiedLinkError: no jniLegacyLibrary in java.library.path
问题 I am using javacpp to access cpp from Java. I have tried the example provided in the documentation cpp code: #include <string> namespace LegacyLibrary { class LegacyClass { public: const std::string& get_property() { return property; } void set_property(const std::string& property) { this->property = property; } std::string property; }; } Java code: import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; @Platform(include="LegacyLibrary.h") @Namespace("LegacyLibrary") public