Hdf java dll problem

Hi,

I downloaded hdf java 2.6. When I try to run any of the examples in the
package I get the following error (this is the GZIP example but the same
happerns for any other).
Note that Java did find the dll, but it wasn't loaded properly. Any ideas
what might cause this error?

···

---------------------------------

java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully loaded
from java.library.path
Exception in thread "main" java.lang.unsatisfiedLinkError:
at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)

-----------------------------

Thanks,

Alex

Alex,

Which version are you using, 32-bit or 64-bit? Did you install hdfview or the pre-built binaries?

Thanks
--pc

Alex Geller wrote:

···

Hi,
I downloaded hdf java 2.6. When I try to run any of the examples in the package I get the following error (this is the GZIP example but the same happerns for any other).
Note that Java did find the dll, but it wasn't loaded properly. Any ideas what might cause this error?
---------------------------------
java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully loaded from java.library.path
Exception in thread "main" java.lang.unsatisfiedLinkError:
at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
-----------------------------
Thanks,
Alex
------------------------------------------------------------------------

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

Alex,

set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
SET JAVAHOME=D:\java\jdk1.6.0_16
SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java

and run the batch file to see if hdfview work. Make sure that
you use 32-bit JVM not 64-bit JVM.

Thanks
--pc

Alex Geller wrote:

···

Hi,
I downloaded hdf java 2.6. When I try to run any of the examples in the package I get the following error (this is the GZIP example but the same happerns for any other).
Note that Java did find the dll, but it wasn't loaded properly. Any ideas what might cause this error?
---------------------------------
java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully loaded from java.library.path
Exception in thread "main" java.lang.unsatisfiedLinkError:
at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
-----------------------------
Thanks,
Alex
------------------------------------------------------------------------

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

I'm using the 32-bit version with the pre-built binaries.
I don't have hdf-view installed.

Alex

···

------------------------------

Alex,

Which version are you using, 32-bit or 64-bit? Did you install hdfview
or the pre-built binaries?

Thanks
--pc
Alex Geller wrote:

* Hi,

*>*
*>* I downloaded hdf java 2.6. When I try to run any of the examples in
*>* the package I get the following error (this is the GZIP example but
*>* the same happerns for any other).
*>* Note that Java did find the dll, but it wasn't loaded properly. Any
*>* ideas what might cause this error?
*>*
*>* ---------------------------------
*>*
*>* java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
*>* application has failed to start because the application configuration
*>* is incorrect. Reinstalling the application may fix this problem
*

The hdfview application starts up but the HDF5 options are greyed-out, I can
only use HDF4.
Also, in the cmd window I get the same dll error.
By the way, I now noticed I didn't copy the exception correctly, the error
is on * jhdf5.dll, not jhdf.dl:*

···

**
java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem

-----------------------------------------------------

Alex,

set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
SET JAVAHOME=D:\java\jdk1.6.0_16
SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java

and run the batch file to see if hdfview work. Make sure that
you use 32-bit JVM not 64-bit JVM.

Thanks
--pc

Alex Geller wrote:

* Hi,

*>*
*>* I downloaded hdf java 2.6. When I try to run any of the examples in
*>* the package I get the following error (this is the GZIP example but
*>* the same happerns for any other).
*>* Note that Java did find the dll, but it wasn't loaded properly. Any
*>* ideas what might cause this error?
*>*
*>* ---------------------------------
*>*
*>* java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
*>* application has failed to start because the application configuration
*>* is incorrect. Reinstalling the application may fix this problem
*>* at java.lang.ClassLoader$NativeLibrary.load(Native Method)
*>* at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
*>* at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
*>* at java.lang.Runtime.loadLibrary0(Runtime.java:823)
*>* at java.lang.System.loadLibrary(System.java:1030)
*>* at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
*>* at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
*>* INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully
*>* loaded from java.library.path
*>* Exception in thread "main" java.lang.unsatisfiedLinkError:
*>* at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
*>* at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
*>* at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>*
*>* -----------------------------
*>*
*>* Thanks,
*>*
*>* Alex
*>* ------------------------------------------------------------------------
*>*
*>* _______________________________________________
*>* Hdf-forum is for HDF software users discussion.
*>* Hdf-forum at
hdfgroup.org<http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* *

Yes, I'm using the 32-bit Sun jdk1.6.14

···

------------------------------

It seems that the dll library is not right for the system or JVM. Are
you using the 32-bit JVM?

Thanks
--pc

Alex Geller wrote:

* The hdfview application starts up but the HDF5 options are greyed-out, *>* I can only use HDF4.*>* Also, in the cmd window I get the same dll error.*>* By the way, I now noticed I didn't copy the exception correctly, the *>* error is on / jhdf5.dll, not jhdf.dl:/*>* // *>* java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This*>* application has failed to start because the application configuration is*>* incorrect. Reinstalling the application may fix this problem*>* *>* -----------------------------------------------------*>* *>* Alex,*>**>* set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.*>* SET JAVAHOME=D:\java\jdk1.6.0_16*>* SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java*>**>* and run the batch file to see if hdfview work. Make sure that*>* you use 32-bit JVM not 64-bit JVM.*>**>* Thanks*>* --pc*>**>**>**>* Alex Geller wrote:*>* >/ Hi,*>* />/ *>* />/ I downloaded hdf java 2.6. When I try to run any of the examples in*>* />/ the package I get the following error (this is the GZIP example but*>* />/ the same happerns for any other).*>* />/ Note that Java did find the dll, but it wasn't loaded properly. Any*>* />/ ideas what might cause this error?*>* />/ *>* />/ ---------------------------------*>* />/ *>* />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This*>* />/ application has failed to start because the application configuration*>* />/ is incorrect. Reinstalling the application may fix this problem*>* />/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)*>* />/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)*>* />/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)*>* />/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)*>* />/ at java.lang.System.loadLibrary(System.java:1030)*>* />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)*>* />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)*>* />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)*>* />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)*>* />/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib*>* />/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully*>* />/ loaded from java.library.path*>* />/ Exception in thread "main" java.lang.unsatisfiedLinkError:*>* />/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)*>* />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)*>* />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)*>* />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)*>* />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)*>* />/ *>* />/ -----------------------------*>* />/ *>* />/ Thanks,*>* />/ *>* />/ Alex*>* />/ *>* ------------------------------------------------------------------------*>* />/*>* />/ _______________________________________________*>* />/ Hdf-forum is for HDF software users discussion.*>* />/ Hdf-forum at hdfgroup.org *>* <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>*>* />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org*>* />/ /*>* ------------------------------------------------------------------------*>**>* _______________________________________________*>* Hdf-forum is for HDF software users discussion.*>* Hdf-forum at hdfgroup.org <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>*>* http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org*>* *

I'm sure the dll is found because when I tried to run the code
examples without adding the ...\lib\win directory to PATH the error
was different
(something like "missing jhdf5.dll", I don't remember exactly). I'm
trying to run it on WinXP if it matters (tried on several computers).

Actually I've now tried to run the package at home and it worked (on
Windows Vista), are you sure it works correctly on XP?

I'm working in a company with a closed network so getting the HdfView
installer into the network might take some time, if you think of
something until then tell me.

Many thanks for trying to help.

···

-------------------------------------------------------------------------
This is very strange. "INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll;
NOT successfully"
means that the application does not find the dll library or the dll is
wrong for the system.

The pre-built binary works fine on our 32-bit systems (Windows 7, XP,
and vista).

Could you download and install hdfview? Use the packed JVM from the
installer.
http://www.hdfgroup.org/hdf-java-html/hdfview/index.html

Thanks
--pc

Alex Geller wrote:

* Yes, I'm using the 32-bit Sun jdk1.6.14

*>*
*>* ------------------------------------------------------------------------
*>* It seems that the dll library is not right for the system or JVM. Are
*>* you using the 32-bit JVM?
*>*
*>*
*>* Thanks
*>* --pc
*>*
*>*
*>* Alex Geller wrote:
*>* >/ The hdfview application starts up but the HDF5 options are greyed-out,
*>* />/ I can only use HDF4.
*>* />/ Also, in the cmd window I get the same dll error.
*>* />/ By the way, I now noticed I didn't copy the exception correctly, the
*>* />/ error is on / jhdf5.dll, not jhdf.dl:/
*>* />/ //
*>* />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
*>* />/ application has failed to start because the application configuration is
*>* />/ incorrect. Reinstalling the application may fix this problem
*>* />/
*>* />/ -----------------------------------------------------
*>* />/
*>* />/ Alex,
*>* />/
*>* />/ set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
*>* />/ SET JAVAHOME=D:\java\jdk1.6.0_16
*>* />/ SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java
*>* />/
*>* />/ and run the batch file to see if hdfview work. Make sure that
*>* />/ you use 32-bit JVM not 64-bit JVM.
*>* />/
*>* />/ Thanks
*>* />/ --pc
*>* />/
*>* />/
*>* />/
*>* />/ Alex Geller wrote:
*>* />/ >/ Hi,
*>* />/ />/
*>* />/ />/ I downloaded hdf java 2.6. When I try to run any of the examples in
*>* />/ />/ the package I get the following error (this is the GZIP example but
*>* />/ />/ the same happerns for any other).
*>* />/ />/ Note that Java did find the dll, but it wasn't loaded properly. Any
*>* />/ />/ ideas what might cause this error?
*>* />/ />/
*>* />/ />/ ---------------------------------
*>* />/ />/
*>* />/ />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
*>* />/ />/ application has failed to start because the application
configuration
*>* />/ />/ is incorrect. Reinstalling the application may fix this problem
*>* />/ />/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
*>* />/ />/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)
*>* />/ />/ at java.lang.System.loadLibrary(System.java:1030)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
*>* />/ />/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully
*>* />/ />/ loaded from java.library.path
*>* />/ />/ Exception in thread "main" java.lang.unsatisfiedLinkError:
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/
*>* />/ />/ -----------------------------
*>* />/ />/
*>* />/ />/ Thanks,
*>* />/ />/
*>* />/ />/ Alex
*>* />/ />/
*>* />/ ------------------------------------------------------------------------
*>* />/ />/
*>* />/ />/ _______________________________________________
*>* />/ />/ Hdf-forum is for HDF software users discussion.
*>* />/ />/ Hdf-forum at hdfgroup.org <http://hdfgroup.org>
*>* />/ <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/ />/ /
*>* />/ ------------------------------------------------------------------------
*>* />/
*>* />/ _______________________________________________
*>* />/ Hdf-forum is for HDF software users discussion.
*>* />/ Hdf-forum at hdfgroup.org
<http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/
*>* /
*>* *

OK, solved it now.

I looked in the event viewer and there was an error:
"Side by side configuration: Dependent Assembly Microsoft.VC90.CRT could not
be found and Last Error was the referenced assembly is not installed on your
system".

I had a C++ runtime installed on my machine but I guess it was too old, I
installed the .NET framework and then it worked.

···

-------------------------------------------------------------------------
This is very strange. "INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll;
NOT successfully"
means that the application does not find the dll library or the dll is
wrong for the system.

The pre-built binary works fine on our 32-bit systems (Windows 7, XP,
and vista).

Could you download and install hdfview? Use the packed JVM from the
installer.
http://www.hdfgroup.org/hdf-java-html/hdfview/index.html

Thanks
--pc

Alex Geller wrote:

** Yes, I'm using the 32-bit Sun jdk1.6.14

**>*
*>* ------------------------------------------------------------------------
*>* It seems that the dll library is not right for the system or JVM. Are
*>* you using the 32-bit JVM?
*>*
*>*
*>* Thanks
*>* --pc
*>*
*>*
*>* Alex Geller wrote:
*>* >/ The hdfview application starts up but the HDF5 options are
greyed-out,
*>* />/ I can only use HDF4.
*>* />/ Also, in the cmd window I get the same dll error.
*>* />/ By the way, I now noticed I didn't copy the exception correctly, the
*>* />/ error is on / jhdf5.dll, not jhdf.dl:/
*>* />/ //
*>* />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
*>* />/ application has failed to start because the application
configuration is
*>* />/ incorrect. Reinstalling the application may fix this problem
*>* />/
*>* />/ -----------------------------------------------------
*>* />/
*>* />/ Alex,
*>* />/
*>* />/ set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
*>* />/ SET JAVAHOME=D:\java\jdk1.6.0_16
*>* />/ SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java
*>* />/
*>* />/ and run the batch file to see if hdfview work. Make sure that
*>* />/ you use 32-bit JVM not 64-bit JVM.
*>* />/
*>* />/ Thanks
*>* />/ --pc
*>* />/
*>* />/
*>* />/
*>* />/ Alex Geller wrote:
*>* />/ >/ Hi,
*>* />/ />/
*>* />/ />/ I downloaded hdf java 2.6. When I try to run any of the examples
in
*>* />/ />/ the package I get the following error (this is the GZIP example
but
*>* />/ />/ the same happerns for any other).
*>* />/ />/ Note that Java did find the dll, but it wasn't loaded properly.
Any
*>* />/ />/ ideas what might cause this error?
*>* />/ />/
*>* />/ />/ ---------------------------------
*>* />/ />/
*>* />/ />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll:
This
*>* />/ />/ application has failed to start because the application
configuration
*>* />/ />/ is incorrect. Reinstalling the application may fix this problem
*>* />/ />/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
*>* />/ />/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)
*>* />/ />/ at java.lang.System.loadLibrary(System.java:1030)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
*>* />/ />/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT
successfully
*>* />/ />/ loaded from java.library.path
*>* />/ />/ Exception in thread "main" java.lang.unsatisfiedLinkError:
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/
*>* />/ />/ -----------------------------
*>* />/ />/
*>* />/ />/ Thanks,
*>* />/ />/
*>* />/ />/ Alex
*>* />/ />/
*>* />/
------------------------------------------------------------------------
*>* />/ />/
*>* />/ />/ _______________________________________________
*>* />/ />/ Hdf-forum is for HDF software users discussion.
*>* />/ />/ Hdf-forum at hdfgroup.org <http://hdfgroup.org>
*>* />/ <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/ />/ /
*>* />/
------------------------------------------------------------------------
*>* />/
*>* />/ _______________________________________________
*>* />/ Hdf-forum is for HDF software users discussion.
*>* />/ Hdf-forum at hdfgroup.org
<http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/
*>* /
*>* *

It seems that the dll library is not right for the system or JVM. Are you using the 32-bit JVM?

Thanks
--pc

Alex Geller wrote:

···

The hdfview application starts up but the HDF5 options are greyed-out, I can only use HDF4.
Also, in the cmd window I get the same dll error.
By the way, I now noticed I didn't copy the exception correctly, the error is on / jhdf5.dll, not jhdf.dl:/
// java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem
-----------------------------------------------------
Alex,

set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
SET JAVAHOME=D:\java\jdk1.6.0_16
SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java

and run the batch file to see if hdfview work. Make sure that
you use 32-bit JVM not 64-bit JVM.

Thanks
--pc

Alex Geller wrote:
>/ Hi,
/>/ />/ I downloaded hdf java 2.6. When I try to run any of the examples in
/>/ the package I get the following error (this is the GZIP example but
/>/ the same happerns for any other).
/>/ Note that Java did find the dll, but it wasn't loaded properly. Any
/>/ ideas what might cause this error?
/>/ />/ ---------------------------------
/>/ />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
/>/ application has failed to start because the application configuration
/>/ is incorrect. Reinstalling the application may fix this problem
/>/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)
/>/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
/>/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
/>/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)
/>/ at java.lang.System.loadLibrary(System.java:1030)
/>/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
/>/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
/>/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
/>/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
/>/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
/>/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully
/>/ loaded from java.library.path
/>/ Exception in thread "main" java.lang.unsatisfiedLinkError:
/>/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
/>/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
/>/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
/>/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
/>/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
/>/ />/ -----------------------------
/>/ />/ Thanks,
/>/ />/ Alex
/>/ ------------------------------------------------------------------------
/>/
/>/ _______________________________________________
/>/ Hdf-forum is for HDF software users discussion.
/>/ Hdf-forum at hdfgroup.org <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
/>/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
/>/ /
------------------------------------------------------------------------

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

This is very strange. "INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully"
means that the application does not find the dll library or the dll is wrong for the system.

The pre-built binary works fine on our 32-bit systems (Windows 7, XP, and vista).

Could you download and install hdfview? Use the packed JVM from the installer.
http://www.hdfgroup.org/hdf-java-html/hdfview/index.html

Thanks
--pc

Alex Geller wrote:

···

Yes, I'm using the 32-bit Sun jdk1.6.14
------------------------------------------------------------------------
It seems that the dll library is not right for the system or JVM. Are you using the 32-bit JVM?

Thanks
--pc

Alex Geller wrote:
>/ The hdfview application starts up but the HDF5 options are greyed-out, />/ I can only use HDF4.
/>/ Also, in the cmd window I get the same dll error.
/>/ By the way, I now noticed I didn't copy the exception correctly, the />/ error is on / jhdf5.dll, not jhdf.dl:/
/>/ // />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
/>/ application has failed to start because the application configuration is
/>/ incorrect. Reinstalling the application may fix this problem
/>/ />/ -----------------------------------------------------
/>/ />/ Alex,
/>/
/>/ set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
/>/ SET JAVAHOME=D:\java\jdk1.6.0_16
/>/ SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java
/>/
/>/ and run the batch file to see if hdfview work. Make sure that
/>/ you use 32-bit JVM not 64-bit JVM.
/>/
/>/ Thanks
/>/ --pc
/>/
/>/ Alex Geller wrote:
/>/ >/ Hi,
/>/ />/ />/ />/ I downloaded hdf java 2.6. When I try to run any of the examples in
/>/ />/ the package I get the following error (this is the GZIP example but
/>/ />/ the same happerns for any other).
/>/ />/ Note that Java did find the dll, but it wasn't loaded properly. Any
/>/ />/ ideas what might cause this error?
/>/ />/ />/ />/ ---------------------------------
/>/ />/ />/ />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
/>/ />/ application has failed to start because the application configuration
/>/ />/ is incorrect. Reinstalling the application may fix this problem
/>/ />/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)
/>/ />/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
/>/ />/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
/>/ />/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)
/>/ />/ at java.lang.System.loadLibrary(System.java:1030)
/>/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
/>/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
/>/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
/>/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
/>/ />/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
/>/ />/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully
/>/ />/ loaded from java.library.path
/>/ />/ Exception in thread "main" java.lang.unsatisfiedLinkError:
/>/ />/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
/>/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
/>/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
/>/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
/>/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
/>/ />/ />/ />/ -----------------------------
/>/ />/ />/ />/ Thanks,
/>/ />/ />/ />/ Alex
/>/ />/ />/ ------------------------------------------------------------------------
/>/ />/
/>/ />/ _______________________________________________
/>/ />/ Hdf-forum is for HDF software users discussion.
/>/ />/ Hdf-forum at hdfgroup.org <http://hdfgroup.org> />/ <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
/>/ />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
/>/ />/ /
/>/ ------------------------------------------------------------------------
/>/
/>/ _______________________________________________
/>/ Hdf-forum is for HDF software users discussion.
/>/ Hdf-forum at hdfgroup.org <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
/>/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
/>/ /
  ------------------------------------------------------------------------

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

Alex,

Good to know you solved the problem. Thank you for keeping us updated.
We will add this to our FAQ just in case others may encounter the same problem.

Thanks
--pc

Alex Geller wrote:

···

OK, solved it now.
I looked in the event viewer and there was an error:
"Side by side configuration: Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was the referenced assembly is not installed on your system".
I had a C++ runtime installed on my machine but I guess it was too old, I installed the .NET framework and then it worked.

-------------------------------------------------------------------------
This is very strange. "INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll;
NOT successfully"
means that the application does not find the dll library or the dll is
wrong for the system.

The pre-built binary works fine on our 32-bit systems (Windows 7, XP,
and vista).

Could you download and install hdfview? Use the packed JVM from the
installer.
http://www.hdfgroup.org/hdf-java-html/hdfview/index.html

Thanks
--pc

Alex Geller wrote:
>/* Yes, I'm using the 32-bit Sun jdk1.6.14
/*>*
*>* ------------------------------------------------------------------------
*>* It seems that the dll library is not right for the system or JVM. Are
*>* you using the 32-bit JVM?
*>*
*>* Thanks
*>* --pc
*>*
*>* Alex Geller wrote:
*>* >/ The hdfview application starts up but the HDF5 options are greyed-out,
*>* />/ I can only use HDF4.
*>* />/ Also, in the cmd window I get the same dll error.
*>* />/ By the way, I now noticed I didn't copy the exception correctly, the
*>* />/ error is on / jhdf5.dll, not jhdf.dl:/
*>* />/ //
*>* />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf5.dll: This
*>* />/ application has failed to start because the application configuration is
*>* />/ incorrect. Reinstalling the application may fix this problem
*>* />/
*>* />/ -----------------------------------------------------
*>* />/
*>* />/ Alex,
*>* />/
*>* />/ set the JAVAHOME and HDFJAVA at bin/hdfview.bat, e.g.
*>* />/ SET JAVAHOME=D:\java\jdk1.6.0_16
*>* />/ SET HDFJAVA=G:\Temp\hdf-java-2.6-bin\hdf-java
*>* />/
*>* />/ and run the batch file to see if hdfview work. Make sure that
*>* />/ you use 32-bit JVM not 64-bit JVM.
*>* />/
*>* />/ Thanks
*>* />/ --pc
*>* />/
*>* />/ Alex Geller wrote:
*>* />/ >/ Hi,
*>* />/ />/
*>* />/ />/ I downloaded hdf java 2.6. When I try to run any of the examples in
*>* />/ />/ the package I get the following error (this is the GZIP example but
*>* />/ />/ the same happerns for any other).
*>* />/ />/ Note that Java did find the dll, but it wasn't loaded properly. Any
*>* />/ />/ ideas what might cause this error?
*>* />/ />/
*>* />/ />/ ---------------------------------
*>* />/ />/
*>* />/ />/ java.lang.unsatisfiedLinkError: C:\hdf-java\lib\win\jhdf.dll: This
*>* />/ />/ application has failed to start because the application
configuration
*>* />/ />/ is incorrect. Reinstalling the application may fix this problem
*>* />/ />/ at java.lang.ClassLoader$NativeLibrary.load(Native Method)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
*>* />/ />/ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
*>* />/ />/ at java.lang.Runtime.loadLibrary0(Runtime.java:823)
*>* />/ />/ at java.lang.System.loadLibrary(System.java:1030)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/ 25/01/2010 10:36:18 ncsa.hdf.hdf5lib.H5 loadH5Lib
*>* />/ />/ INFO: HDF5 library: jhdf5 resolved to: jhdf5.dll; NOT successfully
*>* />/ />/ loaded from java.library.path
*>* />/ />/ Exception in thread "main" java.lang.unsatisfiedLinkError:
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native method)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302)
*>* />/ />/ at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
*>* />/ />/ at datasets.H5Ex_D_Gzip.checkGzipFilter(H5_Ex_D_Gzip.java:62)
*>* />/ />/ at datasets.H5Ex_D_Gzip.main(H5_Ex_D_Gzip.java:315)
*>* />/ />/
*>* />/ />/ -----------------------------
*>* />/ />/
*>* />/ />/ Thanks,
*>* />/ />/
*>* />/ />/ Alex
*>* />/ />/
*>* />/ ------------------------------------------------------------------------
*>* />/ />/
*>* />/ />/ _______________________________________________
*>* />/ />/ Hdf-forum is for HDF software users discussion.
*>* />/ />/ Hdf-forum at hdfgroup.org <http://hdfgroup.org> <http://hdfgroup.org/>>
*>* />/ <http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/ />/ /
*>* />/ ------------------------------------------------------------------------
*>* />/
*>* />/ _______________________________________________
*>* />/ Hdf-forum is for HDF software users discussion.
*>* />/ Hdf-forum at hdfgroup.org <http://hdfgroup.org>
<http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org>
*>* />/ http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
*>* />/
*>* /
*>* *
------------------------------------------------------------------------

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