Failed to configure JFreeChart lib in Eclipse

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yeye
Posts: 2
Joined: Wed Mar 12, 2014 4:28 pm
antibot: No, of course not.

Failed to configure JFreeChart lib in Eclipse

Post by yeye » Wed Mar 12, 2014 5:04 pm

I followed the "Conguration Steps" in the appendix, but the JFreeChart library is not working. I can only see three libraries: "com.orsoncharts.demo", "demo" and "demo.orsoncharts". The "org.jfree.chart/data" libraries are missing.

Is it because I am using different jar file? The one mentioned in the appendix is "jfreechart-1.0.17.jar", while the one I am using is "jfreechart-1.0.17-demo.jar".

P.S.: JCommon lib is working fine.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Failed to configure JFreeChart lib in Eclipse

Post by david.gilbert » Wed Mar 12, 2014 5:14 pm

The jfreechart-1.0.17-demo.jar is in the top-level directory in the download, so you can run the demos easily (java -jar jfreechart-1.0.17-demo.jar). The jar file for the class library itself is in the 'lib' directory of the download, and is called jfreechart-1.0.17.jar. Make sure that is the one you specify in Eclipse (as well as the JCommon jar file).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

yeye
Posts: 2
Joined: Wed Mar 12, 2014 4:28 pm
antibot: No, of course not.

Re: Failed to configure JFreeChart lib in Eclipse

Post by yeye » Wed Mar 12, 2014 5:30 pm

Thanks, it's working now. I was using the wrong jar.

Locked