We distribute ncsa.hdf as part of our software libraries. As at now a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint as
how I can achieve this.
We distribute ncsa.hdf as part of our software libraries. As at now a user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that the user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint as how I can achieve this.
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint
as how I can achieve this.
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set the path.
--pc
Frank Osei Blay wrote:
···
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now a user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint as how I can achieve this.
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
Thanks
--frank
···
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/ -Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
Thanks
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set the path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now a
user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a hint
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now
a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/ -Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now
a
user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
-Djava.library.path=C:/myProduct/plugins/ncsa.hdf_1.0.0_294/lib/;C:/myPr
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
···
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now
a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit) have to be the same. --pc
Frank Osei Blay wrote:
···
I have tried
-Djava.library.path=C:/myProduct/plugins/ncsa.hdf_1.0.0_294/lib/;C:/myPr
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/ -Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at now
a
user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 14:56
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit)
have to be the same. --pc
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at
now
a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
If you can run hdfview, the problem may be the dll you build. Use the dll from hdfview for testing purpose.
Thanks
--pc
Frank Osei Blay wrote:
···
I'm testing this on dll version 32 and JVM 32
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 14:56
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit) have to be the same. --pc
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/ -Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at
now
a
user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
Thanks Peter, I will try this tomorrow and keep you informed.
--frank
···
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 15:24
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
If you can run hdfview, the problem may be the dll you build. Use the
dll from hdfview for testing purpose.
Thanks
--pc
Frank Osei Blay wrote:
I'm testing this on dll version 32 and JVM 32
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 14:56
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit)
have to be the same. --pc
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at
now
a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so
that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
I ran the hdfview and had the same problem as "Re: [Hdf-forum] Hdf java
dll problem" on Jan. 27, 2010. So I had to fix the "Dependent Assembly
Microsoft.VC90.CRT" problem. I managed to run hdfview but still had
problem with running my application. I went further to use dll from
hdfview and it did run OK which means there might be problem with the
dll I built.
For testing purpose I tried to run the application on another pc with
windows XP 32 bit and JVM 32 bit. I followed the same procedure above
(with dll from hdfview) but this time got H5Dchdir_ext error.
java.lang.UnsatisfiedLinkError: H5Dchdir_ext
at ncsa.hdf.hdf5lib.H5.H5Dchdir_ext(Native Method)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1475)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1454)
at ncsa.hdf.object.h5.H5File.open(H5File.java:825)
Could you explain to me what is going wrong?
Thanks
--frank
···
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 15:24
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
If you can run hdfview, the problem may be the dll you build. Use the
dll from hdfview for testing purpose.
Thanks
--pc
Frank Osei Blay wrote:
I'm testing this on dll version 32 and JVM 32
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 14:56
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit)
have to be the same. --pc
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at
now
a
user needs to set the environmental variable (eg setenv
PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so
that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a
Did you use exact the same dll name, "jhdf5.dll"? If you built your dll with different name,
try to use this Java option,
-Dncsa.hdf.hdf5lib.H5.hdf5lib=G:\Projects\Java\hdf-java\native\hdf5lib\OUR_DLL_NAME.dll
Could you build your dll using native/hdf5lib/nt_makefile?
Thanks
--pc
Frank Osei Blay wrote:
···
I ran the hdfview and had the same problem as "Re: [Hdf-forum] Hdf java
dll problem" on Jan. 27, 2010. So I had to fix the "Dependent Assembly
Microsoft.VC90.CRT" problem. I managed to run hdfview but still had
problem with running my application. I went further to use dll from
hdfview and it did run OK which means there might be problem with the
dll I built.
For testing purpose I tried to run the application on another pc with
windows XP 32 bit and JVM 32 bit. I followed the same procedure above
(with dll from hdfview) but this time got H5Dchdir_ext error.
java.lang.UnsatisfiedLinkError: H5Dchdir_ext
at ncsa.hdf.hdf5lib.H5.H5Dchdir_ext(Native Method)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1475)
at ncsa.hdf.object.h5.H5File.open(H5File.java:1454)
at ncsa.hdf.object.h5.H5File.open(H5File.java:825)
Could you explain to me what is going wrong?
Thanks
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 15:24
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
If you can run hdfview, the problem may be the dll you build. Use the dll from hdfview for testing purpose.
Thanks
--pc
Frank Osei Blay wrote:
I'm testing this on dll version 32 and JVM 32
--frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 01 February 2010 14:56
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
The dll version (32-bit or 64-bit) and JVM version (32-bit or 64-bit) have to be the same. --pc
oduct/plugins/ncsa.hdf_1.0.0_294/resources/win
But it is not working.
Regards
frank
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:39
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
For testing purpose, use absolute path.
Frank Osei Blay wrote:
I'm still getting the same errors
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 29 January 2010 15:01
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
Here is how I have set the java option in the batch file
-Djava.library.path=plugins/ncsa.hdf_1.0.0_294/lib/ -Djava.library.path=plugins/ncsa.hdf_1.0.0_294/resources/win
I get exceptions when run
java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:234)
at
ncsa.hdf.hdf5lib.HDF5Constants.<clinit>(HDF5Constants.java:494)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:167)
at ncsa.hdf.object.h5.H5File.<init>(H5File.java:106)
at
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:55
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
You can use one the two ways,
1) Use java option "-Djava.library.path=./win" in your batch file
2) Use "Windows Installer" or any other installation program to set
the
path.
--pc
Frank Osei Blay wrote:
It can be run from .bat or .exe file
-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org
[mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Peter Cao
Sent: 28 January 2010 15:41
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] ncsa.hdf distribution
How do you run your program? from a batch file?
--pc
Frank Osei Blay wrote:
We distribute ncsa.hdf as part of our software libraries. As at
now
a
user needs to set the environmental variable (eg setenv PATH=%PATH%;c:\hdf-java\win) before the program can run.
We will like to distribute the hdf as part of the package, so
that
the
user should do unzip and then run the program.
I am wondering if anybody has done this before and can give me a