如何开始使用JFreeChart? [英] How to get started with JFreeChart?

查看:152
本文介绍了如何开始使用JFreeChart?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了最新版本的JFreeChart(1.0.14)并想开始使用它。我之前只导入了标准的Java包,比如 java.io。* ,但从未处理过第三方库。我需要告诉jGRASP所以它知道并可以访问JFreeChart库吗?我试图像这样导入它 import org.jfree.chart.ChartFactory; 但是得到以下错误 java:1:package org.jfree。图表不存在

I have downloaded the latest version of JFreeChart (1.0.14) and want to start using it. I only have imported standard Java packages like java.io.* before and never dealt with 3rd party libraries. What do I need to tell jGRASP so it knows about and can access the JFreeChart library? I have tried to import it like this import org.jfree.chart.ChartFactory; but getting the following error java:1: package org.jfree.chart does not exist.

推荐答案

您必须在两个编译时添加库的jar文件和运行时 CLASSPATH 。在jGRASP中,您可以通过Settings> PATH / CLASSPATH> Workspace对话框完成。请参见 HOWTO 控制面板设置了解更多详情。

You have to add a library's jar file into both compile-time and run-time CLASSPATH. In jGRASP you can do it through "Settings > PATH/CLASSPATH > Workspace" dialog. See HOWTO, Control Panel and Settings for more details.

这篇关于如何开始使用JFreeChart?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆