The AWJAVA program type is designed to run Java applications.
The AWJAVA program type is designed to run Java applications.
UNIX Program Type Script
1 if [ -f $SQLOPER_HOME/debug/AWJAVA ]; then
2 echo Debug On
3 set -x
4 fi
5 cd $app_path
6 if [ -f CLASSPATH ]; then
7 . ./CLASSPATH
8 else
9 . CLASSPATH
10 fi
11 if [ -f $SQLOPER_HOME/debug/AWJAVA ]; then
12 echo $CLASSPATH
13 fi
14 echo java $command `$SQLOPER_HOME/exec/ONELINE $so_par`
15 java $command `$SQLOPER_HOME/exec/ONELINE $so_par`
Explanation of the Script
The key elements of the script are described below.
Lines | Description |
---|---|
1-4, 11-13 |
Signifies that debug information should be written to the task log when a file named awjava exists in the Applications Manager debug directory. |
5 |
Changes the directory to the library path of the job. |
6-10 |
Determines whether the to use specified classpath if -f <classpath> is called or the current location if it is not. |
14 |
Writes the Java command to the task log. |
15 |
Issues the Java command. |