Please check which version of APIs you are using: check libhdf5.settings file 
that is in the <HDF5_INSTALL>/lib directory, section "Features", Default API 
Mapping line. If it is v18, then you need to use

-DH5_USE_16_API flag with your compiler when you build JNI library, i.e,. 
CC="gcc -DH5_USE_16_API"
export CC
./configure ..... 

Elena
On Mar 2, 2010, at 8:08 AM, Allen D Byrne wrote:

> Which version of hdf-java and the libraries are you using? Also, what is your 
> environment: OS version, compiler, etc.?
> 
> Allen
> 
>> Hi,
>> I'm using HDF with java using ncsa.hdf.
>> I tries to write a hdf file with an attribute. I tried to use the following
>> example:
>> http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/hdf-java/examples/intro/H5_CreateAttribute.java
>> I've got an exception:
>> ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException
>> ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException
>> at ncsa.hdf.hdflib.H5._H5Fopen(Native Method)
>> at ncsa.hdf.hdflib.H5.H5Fopen(H5.java:1295)
>> at intro.H5_CreateAttribute.main(H5_CreateAttribute.java:106)
>> HDF5-DIAG: Error detected in hdf HDF5 (1.8.4) thread 0:
>> #000: ..\..\..\src\H5Edeprec.c line 182 in
>> H5Eget_minor(): not a error message ID
>> major: Invalid arguments to routine
>> minor: Inappropriate type
>> 
>> Why did it happen?
>> thanks
>> 
> 
> _______________________________________________
> 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