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:

  1. 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)
  1. Download the NCSA HDF Java products from:

    Select the self installing script for your platform: e.g., for Solaris 2.5, download:

  2. Save java-hdf-???.sh to a file.
  3. After downloading, install the NCSA Java products where you like with the following command:
    1. sh java-hdf-??.sh or
      chmod +x java-hdf-??.sh; java-hdf-??.sh

    The script will unpack the distribution and fix the jhv script.

  4. 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.
  5. 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.
  6. 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
  7. Start the HDF Viewer: type jhv.
  8. 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