next up previous contents index
Next: For Windows command prompt. Up: Installing hpjdk Previous: Installing hpjdk   Contents   Index

For Linux or UNIX.

Before trying to install hpjdk, ensure your environment is set up so that the javac and java commands are working correctly from the shell prompt.

Download hpjdk-1.0.tar.gz. In a suitable parent directory, execute a command such as

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}tar xvfz hpjdk-1.0.tar.gz\end{verbatim}\end{minipage}\end{displaymath}

to unpack the archive. For illustration, we assume you run this command in the directory /home/myid/. If successful, this creates a directory /home/myid/hpjdk/.

Now you must set three environment variables correctly. First you need to create an environment variable HPJAVA_HOME, pointing to the directory under which hpjdk is installed. Then you need to add the directories hpjdk/classes/ and hpjdk/classes/multithreaded/ to your CLASSPATH environment variable. Finally, you should add the directory hpjdk/bin/ to your PATH environment variable. If you are using the bash shell, one way to set these variables is to add the following lines to the file .bashrc in your home directory:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{tabbing}
\verb\v...
...rt PATH=$HPJAVA_HOME/bin:$PATH\vert
\end{tabbing}\end{minipage}\end{displaymath}

If you are using the csh shell, you could add the following lines to the file .cshrc in your home directory:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{tabbing}
\verb\v...
...nv PATH $HPJAVA_HOME/bin:$PATH\vert
\end{tabbing}\end{minipage}\end{displaymath}

After making these changes, start a new shell.


next up previous contents index
Next: For Windows command prompt. Up: Installing hpjdk Previous: Installing hpjdk   Contents   Index
Bryan Carpenter 2003-04-15