Is there an easy way to setup JHSDK runtime environment on UNIX?
search cancel

Is there an easy way to setup JHSDK runtime environment on UNIX?

book

Article ID: 54975

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

Description

Below steps may help you to setup run-time environment for JHSDK.

Solution

The steps outlined below, involve creation of a copy of one of the Harvest wrapper scripts from $HARVESTHOME/bin and adding necessary Java references towards the end of that file. Once this is done, you just need to "source" this file prior to using the JHSDK programs.

Ex:

  1. Install Harvest command line on the machine (follow steps in Harvest Install Guide)

  2. Install Harweb (follow steps in Harvest Install Guide)

  3. cd $HARVESTHOME

  4. grep -v exec $HARVESTHOME/bin/hco > $HARVESTHOME/.jhsdk.setup

  5. Edit $HARVESTHOME/.jhsdk.setup file in your favourite editor and append references to JAVA and CLASSPATH
  6. JAVA_HOME=<location to Java SDK directory>; export JAVA_HOME PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH; export PATH CLASSPATH=$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$HARVESTHOME/lib:.:$CLASSPATH; export CLASSPATH

    Note: Please adjust the above according to your necessity. The above are usually minimum required.

  7. Now save the file $HARVESTHOME/.jhsdk.setup

  8. chmod u+x $HARVESTHOME/.jhsdk.setup

  9. Source the file $HARVESTHOME/.jhsdk.setup

    1. If you are using the Bourne, Korn, or Bash shells, enter the following command:
    2. $HARVESTHOME/.jhsdk.setup

    3. If you are using the C shell modify .jhsdk.setup file to make appropriate changes needed for C shell and then enter the following command:

      source $HARVESTHOME/.jhsdk.setup

  10. Now follow the steps to use JHSDK Samples in Harvest Install Guide ? Chapter 7.15

Environment

Release: CCCHAR01300-7.1-Harvest-Software Change Manager-Concurrent User
Component: