juliet/ 0040755 0105626 0105626 00000000000 07250612745 011044 5 ustar ams70 ams70 juliet/INSTALL 0100644 0105626 0105626 00000005144 07250516027 012072 0 ustar ams70 ams70 Installing Juliet Voting System =============================== This document describes how to install the Juliet Voting System (JVS). It is not necessary to have the entire system on every machine you want to use; normally you would install the whole system on the computer you will be using as a server, and only the client-side parts on the computer or computers you will be using as polling booths. You must have a working runtime environment of Java 1.2 or later. It is assumed below that this is already set up; if not, refer to the Java website at http://java.sun.com for instructions and downloads. There are two groups of files that you may want to install: Java classes and scripts to simplify running the software. Installing the Java classes --------------------------- The classes/ directory contains the compiled Java class files for JVS. There are six directories of class files: - The main classes/ directory. These class files should be installed in any installation. Starting from a base directory in your Java class path (the CLASSPATH environment variable), create a directory hierarchy like: (base)/uk/ac/cam/cl/CST1b2001/juliet/ and copy the class files into the juliet directory created. - classes/utils/ - these should also be copied in any installation, into a 'utils' subdirectory of the juliet directory created as above. - classes/server/ - these are needed if you want to run the election server. They should be installed in a 'server' subdirectory of the juliet directory created above. - classes/admin/ - these are needed if you want to run the election and voter setup tools (usually on the server computer). They should be installed in an 'admin' subdirectory of the juliet directory created above. - classes/tally/ - these are needed if you want to run the tallying program on the vote log created by the server to find the result of the election. They should be installed in a 'tally' subdirectory of the juliet directory created above. - classes/guiclient/ - these are needed if you want to run the PollingBooth client from this machine. They are also needed on the server if you want to be able to vote from a web browser using the applet version of PollingBooth. They should be installed in a 'guiclient' subdirectory of the juliet directory created above. Installing the scripts ---------------------- On a Unix system, the scripts in scripts/unix/ should be coped to a directory in the executable path. If you are only running a client on this machine, only the script jvs-polling-booth needs to be copied. juliet/applet-demo/ 0040755 0105626 0105626 00000000000 07250613611 013244 5 ustar ams70 ams70 juliet/applet-demo/applet-demo.html 0100644 0105626 0105626 00000004217 07250606460 016346 0 ustar ams70 ams70
This file demonstrates how to use the
PollingBoothApplet
client to enable web-based voting with
browsers that support Java 1.2. For real use you would replace this
text with what you want the voter to see above the voting applet
The actual applet is below. It is embedded in an HTML file with the following code:
<applet codebase="(codebase)" code="uk.ac.cam.cl.CST1b2001.juliet.guiclient.PollingBoothApplet" width="600" height="400"> <param name="server-url" value="(rmi-url)"> </applet>
Where:
(codebase)
is an HTTP URL pointing to the
base directory where the Java classes from the Juliet
distribution are installed (usually the same as the
CODEBASE
environment variable used to invoke the
server). (rmi-url)
is the RMI URL and service name
used to invoke the server. The applet below points to a server running at RMI URL
rmi://hammer.thor.cam.ac.uk/~ams70/java/classes/ams70-ElectionServer-test
with the applet codebase at
http://hammer.thor.cam.ac.uk/~ams70/java/classes/
. If no
server is running at that URL then it will not work (it should display
an error message).
You could include additional text here, such as the election notices and contact details for the returning officer.
Note that because of applet security features, the applet must be served from a web server on the same machine that the election server is running on.
juliet/classes/ 0040755 0105626 0105626 00000000000 07250613656 012503 5 ustar ams70 ams70 juliet/classes/Candidate.class 0100644 0105626 0105626 00000000476 07250610034 015375 0 ustar ams70 ams70 - ()V