Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
145 views
in Technique[技术] by (71.8m points)

java - How to get started with JFreeChart?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

By adding both jar libraries:

jfreechart-1.0.14libjfreechart-1.0.14.jar and
jfreechart-1.0.14libjcommon-1.0.17.jar 

into CLASSPATH, you will be able to use the library straight forward.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...