![]() |
Sieve inetBench - release 20010825 |
Installing Software
To run the Sieve inetBench, you need to have the Java Runtime Environment 1.4 or later. If you do not have it, you can download the latest Runtime Environment from Sun.
Dynamically compiled s4w components require the Jikes Bytecode Toolkit from IBM.
If you wish to compile your own version of Sieve, you will also need:
Sieve is currently available in source and pre-compiled forms.
To use the pre-compiled version of Sieve:
sieve.jar file to your local hard drive.
sieve.jar with jar xvf sieve.jar
sieve-src.jar file to your local hard drive.
sieve-src.jar with jar xvf sieve-src.jar
Makefile.config set the value of JDK_DIR to the location of your Java Development Kit installation
Makefile.config set the value of JIKES_DIR to the location of your Jikes installation
Makefile.config set the value of JIKESBT_DIR to the location of your Jikes Bytecode Toolkit installation
make
Because Sieve uses features not normally granted to applets, you must use a
security policy file. An example policy file is provided as
java.policy. To use this example file, change the URI in the
first line
grant codeBase "file:/sieve/" {
to the URI at which Sieve is installed. Alternatively, you can write your own
policy file.
When using dynamically compiled components, you will also need to change the URI in the line
grant codeBase "file:/usr/local/jikesbt/" {
to the URI at which the Jikes Bytecode Toolkit is installed.
When running Sieve, you will need to direct your Java virtual machine to use
the policy file you have written. For example, when using the
java command you would use:
java -Djava.security.policy==java.policy
and when using the appletviewer command you would use:
appletviewer -J-Djava.security.policy=file:java.policy
Be sure that your CLASSPATH has the location of the Jikes Bytecode Toolkit and the location
of the Java Runtime jar file in it when using dynamically compiled components.
Scripts have been provided to automate this process. When running the Sieve server, you can use:
runserver $1 $2
where $1 is the directory to write temporary files and
$2 is the address for the server to bind to. When running the
Sieve client, you can use:
runclient $1
where $1 is a file URI of an HTML page that launches the Sieve client.
Two examples are user.html and s4w.html in the base
directory of Sieve.
Example: runserver /tmp 127.0.0.1
Example: runclient user.html
IMPORTANT: If you are using Windows 95 or 98 ...
...and you see painting problems like this:
![]()
...instead of this:
|
This is a bug in Java's user interface implementation, not in Sieve. This bug is known by Sun and as of version 1.2.2 of Java (the latest when this page was written) it was not fixed. It occurs when you are using a non-default windows theme that changes the cursor. If you find this behaviour too distracting, the only solution is to set the cursor back to its default setting. |
Any comments, doubts or questions? Write to Dr Cliff Shaffer (shaffer@shaffer.cs.vt.edu)