1.安装j2sdk1.4.2_11
配置环境变量
classpath:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\jsp-api.jar;%JAVA_HOME%\lib\jfreechart-1.0.10.jar;
java_home:D:\j2sdk1.4.2_11
path:d:\oracle\ora90\bin;d:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;%JAVA_HOME%\bin
2.安装TOMCAT 5.0
配置环境变量
CATALINA_BASE:e:\Tomcat 5.0
CATALINA_HOME:e:\Tomcat 5.0
其他添加内容见上面绿色部分
3.安装jfreechart-1.0.10
将E:\jfreechart-1.0.10\jfreechart-1.0.10\lib下的
gnujaxp.jar
iText-2.1.1.jar
jcommon-1.0.13.jar
jfreechart-1.0.10.jar
拷贝到相应工程目录的WEB-INF\lib下
环境变量添加紫色部分内容
web.xml添加
<!-- jfreechart mappings start -->
<servlet>
<servlet-name>DisplayChart</servlet-name>
<servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisplayChart</servlet-name>
<url-pattern>/servlet/DisplayChart</url-pattern>
</servlet-mapping>
<!-- jfreechart mappings end -->