How to start JFreeChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
luna82
Posts: 5
Joined: Tue Jun 27, 2006 11:11 am

How to start JFreeChart

Post by luna82 » Tue Jun 27, 2006 11:23 am

Hello I try to start JFreeChart :cry:

I install JAVA-SDK all ready.
I unzip jfreechart-1.0.1.zip
I get a Example from
www(dot)java2s(dot)com/Code/Java/Chart/JFreeChartLineChartDemo6.htm


Then I try to compilie the LineChartDemo6.java

# javac LineChartDemo6.java -classpath C:\Development\jfreechart-1.0.1\lib\ -sourcepath C:\Development\jfreechart-1.0.1\source

I become 100 errors, whats wrong :(

Best Regards
Luna82

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Tue Jun 27, 2006 12:59 pm

I guess the sources are very old and doon't work with the latest version.

To "start" JFreeChart follow this link
http://www.jfree.org/jfreechart/jfreech ... -demo.jnlp

luna82
Posts: 5
Joined: Tue Jun 27, 2006 11:11 am

Post by luna82 » Tue Jun 27, 2006 2:02 pm

Fine,
how can I make my Line Chart? Its only a demo. If I try to do my Chart with the original jfreechart-1.0.1.zip, I become every time a lot of error messages.

How can I start this Demo from my Computer. How can I compilie the source on my computer. I become only error from the javac.exe. Is same the alpha software :x ?

Best Regards
Luna82

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Tue Jun 27, 2006 2:17 pm

1) Before starting with JFreeChart make sure you know about Java
2) Use an IDE, this will prevent you from many compiler/classpath problems.
3) Buy the developers guide or search the forum for your problem.

cenicienta
Posts: 15
Joined: Mon Jun 26, 2006 8:31 pm
Location: Paris

Post by cenicienta » Tue Jun 27, 2006 8:46 pm

Some sources are created with older version as 0.9.
You have to modify some imports.

For example, replace :

Code: Select all

import org.jfree.data.DefaultCategoryDataset;
import org.jfree.chart.renderer.BarRenderer;
by :

Code: Select all

import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.chart.renderer.category.BarRenderer;
For sure, it's more easy to correct this with an IDE.

luna82
Posts: 5
Joined: Tue Jun 27, 2006 11:11 am

Post by luna82 » Tue Jul 11, 2006 3:01 pm

Okay is running now.

The ebook documentation is fine :D

Locked