Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-20 Thread Peter Cao
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

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-17 Thread marko.kurm
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:

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-16 Thread marko.kurm
Thanks for the help guys!I have the DLL files in the system path + I added the following arguments to the run configuration:-Djava.library.path=C:/dev/hdf5/hdf-java/lib/win-Dncsa.hdf.hdf5lib.H5.hdf5lib=C:/dev/hdf5/hdf-java/lib/win/jhdf5.dlland inside C:/dev/hdf5/hdf-java/lib/win folder, I have two

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-16 Thread Marko Kurm
Sorry, the formatting didn't work. Here it is again: I have the DLL files in the system path + I added the following arguments to the run configuration: -Djava.library.path=C:/dev/hdf5/hdf-java/lib/win -Dncsa.hdf.hdf5lib.H5.hdf5lib=C:/dev/hdf5/hdf-java/lib/win/jhdf5.dll and inside

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-16 Thread Roger Martin
Peter is referring to the HDF5 libs; not just the java native interface ones (e.g. jhdf5) The ones of HDF5 itself as in hdf5.dll and hdf5_hl.dll etc. jhdf5.dll jhdf.dll are only the native glue System.load(full path to libs/ jhdf.dll); will show what is needed clearly On 05/16/2013 03:10 AM,

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-15 Thread Roger Martin
Maybe need to be in a static scope to get it to happen earlier than the H5 one example from a linux case I was debugging .. static { try { //System.loadLibrary(jqb);

Re: [Hdf-forum] Reading an HDF5 file in Java

2013-05-15 Thread Peter Cao
you need to set the HDF library path. If you are running your application from your script, add the library to the command line, e.g. java -Djava.library.path=%PATH_TO_THE_DLLS% ... If you are running with eclipse, set VM argument, -Djava.library.path=%PATH_TO_THE_DLLS% under run-Run

[Hdf-forum] Reading an HDF5 file in Java

2013-05-14 Thread Marko Kurm
I'm trying to open/read an existing HDF5 file using the Java library. I have the jhdf.dll and jhdf5.dll files on the system path. The code I have in my main method is taken from the HDF samples, and looks like this: H5File h5file = new