HamaWhiteGG / langchain-java

Java version of LangChain, while empowering LLM for Big Data.
Apache License 2.0
551 stars 107 forks source link

java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path: #159

Open mcheung610 opened 5 months ago

mcheung610 commented 5 months ago

Has anyone seen this before on a macbook m3?

My dependency looks as simple as this. I tried adding nd4j-native directly with the classifier but still doesn't work.

    implementation("io.github.hamawhitegg:langchain-core:0.2.1") {
        exclude("org.slf4j", "slf4j-log4j12")
    }
Caused by: java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path: /Users/mcheung/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.