You have to use the HDF5 JNI libray, which was built with Java JNI and
the HDF5 C library.

You can find the instructions for installing and using HDF-Java at
http://www.hdfgroup.org/hdf-java-html/install_use_hdf_java_products.pdf

Thanks
--pc


On 5/17/2013 1:44 AM, marko.kurm wrote:
Ok, didn't realize that. Thanks! Now I downloaded the actual HDF5 library and
installed it. I added the following to the VM arguments:
-Djava.library.path="C:\Program Files\HDF_Group\HDF5\1.8.11\bin" ( this is
where the DLLs are).

And at least this code runs through without exceptions:

System.loadLibrary("hdf5");
System.loadLibrary("hdf5_hl");
System.loadLibrary("jhdf5");

So it seems that the libraries are loaded at least. But when I run the
following, I still get the same exception (java.lang.UnsatisfiedLinkError:
ncsa.hdf.hdf5lib.H5.H5Gget_obj_info_all(ILjava/lang/String;[Ljava/lang/String;[I[JI)I):

H5File h5file = new
H5File("C:\\dev\\workspaces\\hdf5\\hdf5\\src\\main\\java\\com\\vaisala\\hdf5\\hdf5_test.h5",
HDF5Constants.H5F_ACC_RDONLY);
h5file.open();
h5file.close();

Is there something I could still try?



--
View this message in context: 
http://hdf-forum.184993.n3.nabble.com/Reading-an-HDF5-file-in-Java-tp4026180p4026196.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org



_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to