HOW TO: Installing and Running Swiff Chart Generator Servlet Samples
The information in this article applies to:
- Swiff Chart Generator 2
Follow the steps below to install and run one of the Swiff Chart Generator Servlet samples:
- Download the Swiff Chart Generator java package SwiffChart.jar from the links below:
For UNIX SwiffChart.jar (UNIX) For Windows SwiffChart.jar (Windows) Make sure you have downloaded the JAR file that corresponds to your system (Unix or Windows).
- Copy the selected java sample code form the Knowledge Base into a file named <sample_class_name>.java where sample_class_name is the name of the java class used in the sample.
- Setup Swiff Chart Generator installation directory.
Windows: Edit the JSP source code and replace the following line:String installation_dir= "/usr/local/SwiffChart";
- by -String installation_dir= <Swiff_Chart_Generator_install_dir_path>;
where <Swiff_Chart_Generator_install_dir_path> is the pathname of Swiff Chart Generator installation directory (usually "C:/Program Files/GlobFX Technologies/Swiff Chart Generator").
Unix: If Swiff Chart Generator installation directory on your system is not /usr/local/SwiffChart, you must modify the JSP source code to specify the valid installation directory, replace the following line of code:String installation_dir= "/usr/local/SwiffChart";
- by -String installation_dir= <Swiff_Chart_Generator_install_dir_path>;
- Compile <sample_class_name>.java with the appropriate CLASSPATH. Note that servlet samples
require the Swiff Chart Generator java package SwiffChart.jar as well as the standard J2EE servlet package.
javac -classpath <J2EE Servlet Package>:SwiffChart.jar <sample_class_name>.java
- Install the generated class file <sample_class_name>.class as well as the the Swiff Chart Generator java package SwiffChart.jar on your Servlet Application Server.
References: |
Keywords: | Servlet Java Installation |