In order to run the servlet using Tomcat 5 you can follow these steps:

1. create a new empty directory for rchart in tomcat: "tomcatdirectory\webapps\rchart2"

2. copy the file web.xml to "tomcatdirectory\webapps\rchart2\WEB-INF\web.xml"

3. copy the areaCurves.txt file from the data\examples directory to "tomcatdirectory\webapps\rchart2". 

4. Copy image files from the data directory to "tomcatdirectory\webapps\rchart2\WEB-INF\classes". This is only required if you want to view one of charts that uses a background image. 

5. copy bin\rchart2.jar to "tomcatdirectory\webapps\rchart2\WEB-INF\lib"

6. start Tomcat

7. Open the following URL in you browser:

http://localhost:8080/rchart2/servlet/RChartServlet?DATAFILE=http://localhost:8080/rchart2/areaCurves.txt


Note 1: if you want to use the PNG or the GIF encoder you must copy the jar file to "tomcatdirectory\webapps\rchart2\WEB-INF\lib"


