java-native-interfaceitksimpleitk

Where do i get SimpleITK JNI Lib?


using intellij in windows and i'm getting this error: java.lang.UnsatisfiedLinkError: no SimpleITKJava in java.library.path

reading this tutorial: https://itk.org/Wiki/SimpleITK/GettingStarted/A_visual_guide_to_SimpleITK_in_Java

i find a fix:

"...Set the Native library location to the directory containing the platform specific JNI library...SimpleITKJava.dll on Windows..."

where do i get this JNI library? Do i get this by building SimpleITK with cmake? if so, how exactly? Cant find any answer, i already know how to set the Native library location in intellij, and my pom.xml run with no errors or warnings.


Solution

  • Coming back after some time, using gradle was the best for me, using local binary file that i downloaded from https://github.com/SimpleITK/SimpleITK/releases:

    implementation files('SimpleITK-2.3.0/simpleitk-2.3.0rc1.post2.jar')