Installation and Configuration for UNIX
The NCSA Java products require Java JDK1.1 or above
(JDK1.1.x).
- Installation of the JDK1.1.x
Ask your system administrator to see if the Java Developer's Kit (JDK)1.1.x
is installed in your machine. If not, download and install the JDK1.1.x.
Information about obtaining and installing JDK1.1.x
is available at:
- Make sure to add Java VM to the environment variable PATH. Use setenv
for the C shell or export for the Korn shell.
- For C shell
- setenv JAVA_HOME /JDK/Directory
- setenv PATH $JAVA_HOME/bin:$PATH
- For Korn shell
- JAVA_HOME=/JDK/Directory
- PATH=$JAVA_HOME/bin:$PATH;
- export PATH
- Installation and Configuration of the NCSA HDF Java products (precompiled)
- Download the NCSA HDF Java products from:
Select the self installing script for your platform: e.g.,
for Solaris 2.5, download:
- Save java-hdf-???.sh to a file.
- After downloading, install the NCSA Java products where you like
with the following command:
sh java-hdf-??.sh or
chmod +x java-hdf-??.sh; java-hdf-??.sh
The script will unpack the distribution and fix the jhv script.
-
If the automatic script does not work on your system, then
download the tar file or a compressed tar file, and unpack it
in the installation directory.
-
You should add the Java HDF library to the LD_LIBRARY_PATH
environment variable, and the Java HDF class to the CLASSPATH
variable.
You may also add the path
of the Java HDF ``bin'' directory to your Unix path variable,
as follows.
Suppose JHV has been installed under ``/install/directory/''.
- For C shell
- setenv LD_LIBRARY_PATH /install/directory/lib:/install/directory/lib/<machine>:$LD_LIBRARY_PATH
- setenv CLASSPATH /install/directory/lib/classes.zip:$CLASSPATH
- setenv PATH /install/directory/bin:$PATH
- For Korn shell
- LD_LIBRARY_PATH=/install/directory/lib:/install/directory/lib/<machine>:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- CLASSPATH=/install/directory/lib/classes.zip:$CLASSPATH
- export CLASSPATH
- PATH=/install/directory/bin:$PATH
- export PATH
- Start the HDF Viewer: type jhv.
- If JHV does not work, please refer
to Frequently
Asked Questions.
Installation from the source
The NCSA Java Products may be install from the
source distribution.
hdfhelp@ncsa.uiuc.edu
HDF Group, NCSA
|