NonStop Server for Java 4.2 Programmer's Reference
Describes how to run the OSS shell using the osh command.
Creating Files
Describes how to create new files in the OSS environment using the vi text editor.
Note that you can avoid using the vi text editor by creating the files in another environment and
using the File Transfer Protocol (FTP), the ftp command, or another utility to put the files in the
OSS file system. The HelloWorld sample, shown later in this section, uses this method.
The following sections are a tutorial that introduces many of the frequently used OSS user commands
and utilities to perform the particular tasks:
Creating files
●
Managing files●
Managing directories●
Managing access to files and directories●
Managing processes●
UNIX Tutorials
Public sources of informationsuch as, classes and tutorialson using UNIX systems through the Korn
shell are highly applicable to using the OSS environment. You might find these sources a good first step
in learning about the file system, commands, and utilities characteristic of the OSS environment.
Verifying the Java Installation
Ask your system administrator where the NonStop Server for Java Server 4 software is installed.
Knowing that, you can verify the installation and verify your environment. This example assumes that
NonStop Server for Java 4 is installed in a nonstandard locationthe directory:
Note: If your NonStop Server for Java 1.4.2 software is installed in the standard location
(/usr/tandem), or if you are using NonStop Server for Java 1.4.2 version T2766H10^ABV or
later, skip Step 4 and Step 5 and specify the location values accordingly.
/home/lee/jdk142
1. Set the PATH environment variable by using the following command at the OSS prompt:
$export PATH=/home/lee/jdk142/java/bin:$PATH
2. Confirm that the path is set correctly by typing the whence command:
$whence java
/home/lee/jdk142/java/bin/java
3. Determine the version of the Java virtual machine (JVM) by typing the vproc command, which