I am learning HDF5 with jhdf5.
I am working on MAC OS_X.
- brew install hdf5
This installs hdf5-1.10 in /usr/local/Cellar/hdf5
- Copy this file and put it in gradle project.
https://support.hdfgroup.org/ftp/HDF5/hdf-java/hdf-java-examples/jnative/h5/HDF5FileCreate.java
This is the most basic java example file.
Add this dependency in gradle
compile group: 'org.hdfgroup', name: 'hdf-java', version: '2.6.1'
Update package import statements by adding
ncsain front.Run it. And I got this error
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
This is expected because jhdf5 according to my knowledge is just a wrapper calling native functions.
So I need to add something to ncsa.hdf.hdf5lib.H5.hdf5lib in the system setting.
I am not sure which library to add and where to find them.
I found a few examples online but all are in Windows, hence, the names are and paths are not really similar.