unable to use hdf5-java


I want to use the hdf5 java library on mac, but always got this error:
I always got this error:

java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)

The test program I used is H5Ex_D_Hyperslab.java
which is downloaded online.

I followed the steps in https://www.hdfgroup.org/products/java/hdf-object/index.html
Apparently, it’s outdated( Last modified: 15 December 2014), for example, there is no jhdf.jar, instead it has been renamed as jarhdf.jar

I have tried all existing solutions online(e.g., adding the pre-built library to CLASSPATH), but still couldn’t fix it.
Could you please give it a try and let me know how to configure it? Thanks.