I’m using the latest compiled release of HDF5 library (1.14.3) on Windows. Even for an elementary Java test program, the program fails with the following error:
java.lang.UnsatisfiedLinkError: C:\Program Files\HDF_Group\HDF5\1.14.3\bin\hdf5_java.dll: The specified procedure could not be found
The program:
package org.example;
import hdf.hdf5lib.*;
public class Main {
public static void main(){
long fileId = -1;
try {
// Open file
fileId = H5.H5Fopen("", HDF5Constants.H5F_ACC_RDONLY, HDF5Constants.H5P_DEFAULT);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
The command line used:
java -Xmx1024M -Djava.library.path="C:\Program Files\HDF_Group\HDF5\1.14.3\bin" -cp ".;C:\Program Files\HDF_Group\HDF5\1.14.3\lib/jarhdf5-1.14.3.jar;C:\Program Files\HDF_Group\HDF5\1.14.3\lib/slf4j-api-2.0.6.jar;C:\Users\david\.m2\repository\ch\qos\logback\logback-classic\1.3.6\logback-classic-1.3.6.jar;C:\Workspaces\tests\java\HDF_test\target\HDF_test-1.0-SNAPSHOT.jar" -Dhdf.hdf5lib.H5.loadLibraryName=hdf5_java -ea org.example.Main
What can be the problem here?