bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.53k stars 1.58k forks source link

ND4J is probably missing dependencies. no jniopenblas_nolapack in java.library.path #2062

Closed imbaTapac closed 1 year ago

imbaTapac commented 1 year ago

Im trying to run this example of using nd4j with bytedeco Here but got error while starting app as

[main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:79)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at java.base/java.lang.Class.newInstance(Class.java:584)
    at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5152)
    at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5064)
    at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:284)
    at org.deeplearning4j.models.embeddings.inmemory.InMemoryLookupTable$Builder.<init>(InMemoryLookupTable.java:525)
    at org.deeplearning4j.models.sequencevectors.SequenceVectors$Builder.presetTables(SequenceVectors.java:934)
    at org.deeplearning4j.models.word2vec.Word2Vec$Builder.build(Word2Vec.java:614)
    at Word2VecRawTextExample.main(Word2VecRawTextExample.java:80)
Caused by: java.lang.RuntimeException: ND4J is probably missing dependencies. For more information, please refer to: https://deeplearning4j.konduit.ai/nd4j/backend
    at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:107)
    at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:41)
    ... 13 more
Caused by: java.lang.UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2662)
    at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827)
    at java.base/java.lang.System.loadLibrary(System.java:1871)
    at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1832)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1423)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
    at org.bytedeco.openblas.global.openblas_nolapack.<clinit>(openblas_nolapack.java:12)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1289)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
    at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
    at org.nd4j.linalg.cpu.nativecpu.bindings.Nd4jCpu.<clinit>(Nd4jCpu.java:14)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at org.nd4j.common.config.ND4JClassLoading.loadClassByName(ND4JClassLoading.java:62)
    at org.nd4j.common.config.ND4JClassLoading.loadClassByName(ND4JClassLoading.java:56)
    at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:97)
    ... 14 more
Caused by: java.lang.UnsatisfiedLinkError: Could not find jniopenblas_nolapack in class, module, and library paths.
    at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1799)
    ... 29 more

I have tried all solutions from prevoius tickets but it didnt helped me. I use next dependencies in my POM

    <properties>
        <java.version>11</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <dl4j-master.version>1.0.0-M2.1</dl4j-master.version>
    </properties>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-datasets</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>resources</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-ui</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-zoo</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- ParallelWrapper & ParallelInference live here -->
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-parallel-wrapper</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nlp</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-api -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-api</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.deeplearning4j/deeplearning4j-nn -->
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nn</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-common -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-common</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/jackson -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>jackson</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-api</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-platform</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-preset</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/javacpp -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>1.5.9</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/javacv-platform -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv</artifactId>
            <version>1.5.9</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv-platform</artifactId>
            <version>1.5.9</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/javacpp -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>1.5.9</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/openblas -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>openblas</artifactId>
            <version>0.3.23-1.5.9</version>
        </dependency>

Help please to understood and fix the root of issue

saudet commented 1 year ago

Please follow the instructions at https://github.com/bytedeco/javacpp-presets/wiki/Debugging-UnsatisfiedLinkError-on-Windows

imbaTapac commented 1 year ago

Getting NPE while trying execute the code from example on Loader.cacheResource(openblas_nolapack.class, "windows-x86_64/jniopenblas_nolapack.dll") image

saudet commented 1 year ago

That probably means the dependencies of the openblas-platform artifact are missing. Make sure that all its JAR files are in your class path.

imbaTapac commented 1 year ago

Its in, but its not worked image

saudet commented 1 year ago

You need the dependencies of openblas-platform, not openblas-platform itself. That's just an empty JAR.

imbaTapac commented 1 year ago

You mean this one? Here (Sorry for stupid question, in not fully familiar with all stuff which is need to run this =) )

saudet commented 1 year ago

If you don't know what you're doing, please start by using Maven. If it works with Maven, then it's a problem with your IDE.

imbaTapac commented 1 year ago

If you don't know what you're doing, please start by using Maven. If it works with Maven, then it's a problem with your IDE.

Im using maven already (from cmd even dont word), i also attached my pom, after our disscussion i added

<!-- https://mvnrepository.com/artifact/org.bytedeco/openblas-platform -->
<dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>openblas-platform</artifactId>
    <version>0.3.23-1.5.9</version>
</dependency>

But it even dont help, looks like to run it on Windows i needed smth more than just dependencies in maven even with installed this https://github.com/xianyi/OpenBLAS/wiki/Installation-Guide

saudet commented 1 year ago

You're not using Maven. Maven is a command line tool. Like I said, if it doesn't work with Maven, then please let me know. If it doesn't work just in your IDE, then please report the bug upstream, because that means this is a problem with your IDE, not with JavaCPP. I repeat, please try again with Maven on the command line.

imbaTapac commented 1 year ago

Not work

PS E:\Projects\deeplearning4j-examples\word2vec> mvn -N clean install
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< org.llm:word2vec >--------------------------
[INFO] Building word2vec 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.deeplearning4j:deeplearning4j-datasets:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-core:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:resources:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-ui:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-zoo:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-parallel-wrapper:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-nlp:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-api:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-nn:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-common:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:jackson:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-api:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-platform:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-preset:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:javacpp:jar:1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:javacv-platform:jar:1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:openblas-platform:jar:0.3.23-1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ word2vec ---
[INFO] Deleting E:\Projects\deeplearning4j-examples\word2vec\target
[INFO]
[INFO] --- resources:3.3.0:resources (default-resources) @ word2vec ---
[INFO] Copying 0 resource
[INFO]
[INFO] --- compiler:3.10.1:compile (default-compile) @ word2vec ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to E:\Projects\deeplearning4j-examples\word2vec\target\classes
[INFO]
[INFO] --- resources:3.3.0:testResources (default-testResources) @ word2vec ---
[INFO] skip non existing resourceDirectory E:\Projects\deeplearning4j-examples\word2vec\src\test\resources
[INFO]
[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ word2vec ---
[INFO] Changes detected - recompiling the module!
[INFO]
[INFO] --- surefire:3.0.0:test (default-test) @ word2vec ---
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ word2vec ---
[INFO] Building jar: E:\Projects\deeplearning4j-examples\word2vec\target\word2vec-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- install:3.1.0:install (default-install) @ word2vec ---
[INFO] Installing E:\Projects\deeplearning4j-examples\word2vec\pom.xml to C:\Users\Taras\.m2\repository\org\llm\word2vec\1.0-SNAPSHOT\word2vec-1.0-SNAPSHOT.pom
[INFO] Installing E:\Projects\deeplearning4j-examples\word2vec\target\word2vec-1.0-SNAPSHOT.jar to C:\Users\Taras\.m2\repository\org\llm\word2vec\1.0-SNAPSHOT\word2vec-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.984 s
[INFO] Finished at: 2023-07-17T17:07:25+03:00
[INFO] ------------------------------------------------------------------------
PS E:\Projects\deeplearning4j-examples\word2vec> mvn exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< org.llm:word2vec >--------------------------
[INFO] Building word2vec 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.deeplearning4j:deeplearning4j-datasets:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-core:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:resources:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-ui:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-zoo:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-parallel-wrapper:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-nlp:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-api:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.deeplearning4j:deeplearning4j-nn:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-common:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:jackson:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-api:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-platform:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.nd4j:nd4j-native-preset:jar:1.0.0-M2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:javacpp:jar:1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:javacv-platform:jar:1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bytedeco:openblas-platform:jar:0.3.23-1.5.9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- exec:1.4.0:java (default-cli) @ word2vec ---
[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
[WARNING]
java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
    at java.lang.Thread.run (Thread.java:834)
Caused by: java.lang.NullPointerException
    at main.Word2VecRawTextExample.main (Word2VecRawTextExample.java:55)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
    at java.lang.Thread.run (Thread.java:834)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.977 s
[INFO] Finished at: 2023-07-17T17:07:33+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project word2vec: An exception occured while executing the Java class. null: InvocationTargetException: NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

With build option

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.4.0</version>
                <configuration>
                    <mainClass>main.Word2VecRawTextExample</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>

Cleaning .m2 folder doesnt help to solve warning about invalid POMs

UPD

Debug info at start app
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Loading library api-ms-win-crt-locale-l1-1-0
Debug: Loading library api-ms-win-crt-string-l1-1-0
Debug: Loading library api-ms-win-crt-stdio-l1-1-0
Debug: Loading library api-ms-win-crt-math-l1-1-0
Debug: Loading library api-ms-win-crt-heap-l1-1-0
Debug: Loading library api-ms-win-crt-runtime-l1-1-0
Debug: Loading library api-ms-win-crt-convert-l1-1-0
Debug: Loading library api-ms-win-crt-environment-l1-1-0
Debug: Loading library api-ms-win-crt-time-l1-1-0
Debug: Loading library api-ms-win-crt-filesystem-l1-1-0
Debug: Loading library api-ms-win-crt-utility-l1-1-0
Debug: Loading library api-ms-win-crt-multibyte-l1-1-0
Debug: Loading library api-ms-win-crt-conio-l1-1-0
Debug: Loading library api-ms-win-crt-private-l1-1-0
Debug: Loading library api-ms-win-crt-process-l1-1-0
Debug: Loading library api-ms-win-core-console-l1-2-0
Debug: Loading library api-ms-win-core-string-l1-1-0
Debug: Loading library api-ms-win-core-errorhandling-l1-1-0
Debug: Loading library api-ms-win-core-timezone-l1-1-0
Debug: Loading library api-ms-win-core-file-l1-1-0
Debug: Loading library api-ms-win-core-namedpipe-l1-1-0
Debug: Loading library api-ms-win-core-handle-l1-1-0
Debug: Loading library api-ms-win-core-file-l2-1-0
Debug: Loading library api-ms-win-core-heap-l1-1-0
Debug: Loading library api-ms-win-core-libraryloader-l1-1-0
Debug: Loading library api-ms-win-core-synch-l1-1-0
Debug: Loading library api-ms-win-core-processthreads-l1-1-0
Debug: Loading library api-ms-win-core-processenvironment-l1-1-0
Debug: Loading library api-ms-win-core-datetime-l1-1-0
Debug: Loading library api-ms-win-core-localization-l1-2-0
Debug: Loading library api-ms-win-core-sysinfo-l1-1-0
Debug: Loading library api-ms-win-core-synch-l1-2-0
Debug: Loading library api-ms-win-core-console-l1-1-0
Debug: Loading library api-ms-win-core-debug-l1-1-0
Debug: Loading library api-ms-win-core-rtlsupport-l1-1-0
Debug: Loading library api-ms-win-core-processthreads-l1-1-1
Debug: Loading library api-ms-win-core-file-l1-2-0
Debug: Loading library api-ms-win-core-profile-l1-1-0
Debug: Loading library api-ms-win-core-memory-l1-1-0
Debug: Loading library api-ms-win-core-util-l1-1-0
Debug: Loading library api-ms-win-core-interlocked-l1-1-0
Debug: Loading library ucrtbase
Debug: Loading library vcruntime140
Debug: Loading library vcruntime140_1
Debug: Loading library msvcp140
Debug: Loading library msvcp140_1
Debug: Loading library concrt140
Debug: Loading library vcomp140
Debug: Loading library jnijavacpp
Debug: Failed to load for jnijavacpp: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
Debug: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading library libopenblas
Debug: Failed to load for libopenblas#libopenblas_nolapack: java.lang.UnsatisfiedLinkError: no libopenblas in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
Debug: Loading library openblas_nolapack
Debug: Failed to load for openblas_nolapack@.0: java.lang.UnsatisfiedLinkError: no openblas_nolapack in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
Debug: Loading library jniopenblas_nolapack
Debug: Failed to load for jniopenblas_nolapack: java.lang.UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]

Dependency tree is

[INFO] org.llm:word2vec:jar:1.0-SNAPSHOT
[INFO] +- org.deeplearning4j:deeplearning4j-datasets:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-core:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:resources:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-ui:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-zoo:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-parallel-wrapper:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-nlp:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-api:jar:1.0.0-M2.1:compile
[INFO] +- org.deeplearning4j:deeplearning4j-nn:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-common:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:jackson:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-native:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-native-api:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-native-platform:jar:1.0.0-M2.1:compile
[INFO] +- org.nd4j:nd4j-native-preset:jar:1.0.0-M2.1:compile
[INFO] +- org.bytedeco:javacpp:jar:1.5.9:compile
[INFO] +- org.bytedeco:javacv:jar:1.5.9:compile
[INFO] |  +- org.bytedeco:opencv:jar:4.7.0-1.5.9:compile
[INFO] |  +- org.bytedeco:ffmpeg:jar:6.0-1.5.9:compile
[INFO] |  +- org.bytedeco:flycapture:jar:2.13.3.31-1.5.9:compile
[INFO] |  +- org.bytedeco:libdc1394:jar:2.2.6-1.5.9:compile
[INFO] |  +- org.bytedeco:libfreenect:jar:0.5.7-1.5.9:compile
[INFO] |  +- org.bytedeco:libfreenect2:jar:0.2.0-1.5.9:compile
[INFO] |  +- org.bytedeco:librealsense:jar:1.12.4-1.5.9:compile
[INFO] |  +- org.bytedeco:librealsense2:jar:2.53.1-1.5.9:compile
[INFO] |  +- org.bytedeco:videoinput:jar:0.200-1.5.9:compile
[INFO] |  +- org.bytedeco:artoolkitplus:jar:2.3.1-1.5.9:compile
[INFO] |  +- org.bytedeco:leptonica:jar:1.83.0-1.5.9:compile
[INFO] |  +- org.bytedeco:tesseract:jar:5.3.1-1.5.9:compile
[INFO] |  \- org.openjfx:javafx-graphics:jar:11:compile
[INFO] |     +- org.openjfx:javafx-graphics:jar:win:11:compile
[INFO] |     \- org.openjfx:javafx-base:jar:11:compile
[INFO] |        \- org.openjfx:javafx-base:jar:win:11:compile
[INFO] +- org.bytedeco:javacv-platform:jar:1.5.9:compile
[INFO] +- org.bytedeco:openblas:jar:0.3.23-1.5.9:compile
[INFO] +- org.bytedeco:openblas-platform:jar:0.3.23-1.5.9:compile
[INFO] +- org.slf4j:slf4j-api:jar:2.0.7:compile
[INFO] +- commons-io:commons-io:jar:2.13.0:compile
[INFO] +- com.google.code.gson:gson:jar:2.10.1:compile
[INFO] \- org.apache.commons:commons-math3:jar:3.6.1:compile
saudet commented 1 year ago

Dependency tree is

Just like I said, the dependencies for openblas-platform are missing. It looks like you have a buggy version of Maven. Please try to reinstall.

imbaTapac commented 1 year ago

Fixed by setting classifier(in my case windows-x86_64) for main dependencies like

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-datasets</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>resources</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-ui</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-zoo</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- ParallelWrapper & ParallelInference live here -->
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-parallel-wrapper</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nlp</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-api -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-api</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.deeplearning4j/deeplearning4j-nn -->
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-nn</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-common -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-common</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.nd4j/jackson -->
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>jackson</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <version>${dl4j-master.version}</version>
            <classifier>windows-x86_64</classifier>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-api</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-platform</artifactId>
            <version>${dl4j-master.version}</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-preset</artifactId>
            <version>${dl4j-master.version}</version>
            <classifier>windows-x86_64</classifier>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/javacpp -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>1.5.9</version>
            <classifier>windows-x86_64</classifier>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.bytedeco/javacv-platform -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv</artifactId>
            <version>1.5.9</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv-platform</artifactId>
            <version>1.5.9</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.bytedeco/openblas -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>openblas</artifactId>
            <version>0.3.23-1.5.9</version>
            <classifier>windows-x86_64</classifier>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>openblas-platform</artifactId>
            <version>0.3.23-1.5.9</version>
        </dependency>

After that all dlls is copied to .javacpp/cache And logs become as

Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-locale-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-string-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-stdio-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-math-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-heap-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-runtime-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-convert-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-environment-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-time-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-filesystem-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-utility-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-multibyte-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-conio-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-private-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-process-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-2-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-string-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-errorhandling-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-timezone-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-namedpipe-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-handle-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l2-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-heap-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-libraryloader-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processenvironment-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-datetime-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-localization-l1-2-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-sysinfo-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-2-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-debug-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-rtlsupport-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-1.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-2-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-profile-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-memory-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-util-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-interlocked-l1-1-0.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\ucrtbase.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140_1.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140_1.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\concrt140.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcomp140.dll
Debug: Loading C:\Users\Taras\.javacpp\cache\javacpp-1.5.9-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jnijavacpp.dll
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Pointer
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading C:\Users\Taras\.javacpp\cache\openblas-0.3.23-1.5.9-windows-x86_64.jar\org\bytedeco\openblas\windows-x86_64\libopenblas_nolapack.dll
Debug: Loading library openblas_nolapack
Debug: Failed to load for openblas_nolapack@.0: java.lang.UnsatisfiedLinkError: no openblas_nolapack in java.library.path: [C:\Program Files\Java\jdk-11.0.17\bin, C:\WINDOWS\Sun\Java\bin, C:\WINDOWS\system32, C:\WINDOWS, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp, C:\Program Files\Common Files\Oracle\Java\javapath, C:\Program Files (x86)\Common Files\Oracle\Java\javapath, C:\WINDOWS\system32, C:\WINDOWS, C:\WINDOWS\System32\Wbem, C:\WINDOWS\System32\WindowsPowerShell\v1.0\, C:\WINDOWS\System32\OpenSSH\, C:\Program Files\Git\cmd, C:\Program Files\Docker\Docker\resources\bin, C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR, C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0\, C:\Users\Taras\AppData\Local\Microsoft\WindowsApps, C:\Users\Taras\AppData\Local\GitHubDesktop\bin, C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3\bin, C:\Program Files\apache-maven-3.9.1\bin, C:\Program Files\Java\jdk-11.0.17\bin, C:\Program Files\Java\jdk1.8.0_351\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\lib, .]
Debug: Loading C:\Users\Taras\.javacpp\cache\openblas-0.3.23-1.5.9-windows-x86_64.jar\org\bytedeco\openblas\windows-x86_64\jniopenblas_nolapack.dll
Debug: Loading class org.bytedeco.openblas.presets.openblas_nolapack

But now i got error related to nd4j which looks like not related to this

Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.deeplearning4j.models.embeddings.inmemory.InMemoryLookupTable$Builder.<init>(InMemoryLookupTable.java:525)
    at org.deeplearning4j.models.sequencevectors.SequenceVectors$Builder.presetTables(SequenceVectors.java:934)
    at org.deeplearning4j.models.word2vec.Word2Vec$Builder.build(Word2Vec.java:614)
    at main.Word2VecRawTextExample.main(Word2VecRawTextExample.java:93)
Caused by: java.lang.RuntimeException: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend
    at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5066)
    at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:284)
    ... 4 more
Caused by: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend
    at org.nd4j.linalg.factory.Nd4jBackend.load(Nd4jBackend.java:211)
    at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5062)
    ... 5 more