Java Runtime Environment
The system requirements for the java applications are a Java Runtime Environment, JRE,
that supports JDK 1.1 or later.
If you are uncertain of the version of the installed JRE, you can check
the version number by typing:
java -version
which gives a typical output of:
java version "1.1.3"
Executing a Java application
Before you can execute a java application the environment variables CLASSPATH and PATH
must be set. Read the java documentation for details about the environment variables. The
following is an example, of how to set the two environment variables in Unix:
$ setenv CLASSPATH /usr/apps/COTS/jdk1.1.4/bin
$ setenv PATH $CLASSPATH":"$PATH
To execute a java application type:
[path to java]java [-jar RUP.jar] [ruptools.myclass.class] [argument1] [argument...]
Below each part of the line above is described. Inside the "[ ]" some
example syntax is described. The example shall be replaced with the real values.
[path to java]java |
This is the way to call the Java Runtime Environment. If the location where the java
program is located is included in the PATH variable the [path to java] can be excluded. |
[-jar RUP.jar] |
The Rational Unified Process tools are packed into a jar file. This will make it
possible to run the different applications without unpacking it into several directories.
In JDK 1.2 it is possible to pass the jar file as an argument to the java program this is
done with the -jar parameter.
However this is not possible in JDK 1.1. If you add the jar file into the variable
CLASSPATH then it is still possible to execute the applications without unpacking the jar
file.
Finally it is of cause possible to unpack the jar file. Then this argument is excluded. |
[ruptools.myclass.class] |
This is the name of the application. It consists of the name of the package in which
the application. The package name is "ruptools". |
[argument1] [argument2] [argument...] |
Finally the arguments the applications requires are passed to the application. |
Customize the available memory
The SearchEngine is a memory intensive application, so the more virtual memory your
system has, the faster the compilation speeds, and the larger the database sizes that can
be compiled.
If your system has more than 16MB of memory, you may wish to adjust the
initial and maximum Java heap sizes, using the -ms and -mx
options, as described in the Java utility documentation, for example:
java -ms24m -mx64m ...
|