JFreeChart 1.0.14

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
JohnEPearson
Posts: 2
Joined: Sat Feb 09, 2013 4:46 pm
antibot: No, of course not.

Re: JFreeChart 1.0.14

Post by JohnEPearson » Sat Feb 09, 2013 5:03 pm

I am new to Java and JFreeChart. I'm trying to get started using JFreeChart 1.0.14 with NetBeans.

I'm trying to create the first application in the documentation (Appendix C): MyAppThatUSesJFreeChart . I can't yet compile and am trying to debug.

I've added the JCommon and JFreeChart libraries. Under the libraries folder it now shows:

JCommon-1.0.18 - /Users/pearson/jcommon-1.0.18
JFreeChart-1.0.14 - jfreechart-1.0.14.jar
JDK 1.6 (Default)

Is this correct? When I added the libraries to NetBeans I was suprised that jfreechart and jcommon didn't have parallel directory structures.
jfreechart-1.0.14.jar is in jfreechart-1.0.14/lib while jcommon-1.0.18.jar is in: jcommon-1.0.18

JohnEPearson
Posts: 2
Joined: Sat Feb 09, 2013 4:46 pm
antibot: No, of course not.

Re: JFreeChart 1.0.14

Post by JohnEPearson » Sun Feb 10, 2013 11:15 am

For whatever reason the fix imports button in NetBeans did not add: import org.jfree.data.general.DefaultPieDataset;

I also had to change the name of the class from MyAppThatUsesJFreeChart to MyAppThatUsesJFreeChar (dropped the final t)
because I was getting a "duplicate class" error if I simply followed the instructions in the documentation: jfreechart-1.0.14 .

Once these two corrections were made the demo code in Appendix C ran. I hope the rest of the documentation is not as buggy.

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Support Java MANIFEST Specification-Version

Post by mhilpert » Mon Feb 25, 2013 12:00 pm

It would be very usefull to have the JFreeChart version in the MANIFEST.MF file:

Code: Select all

Specification-Vendor: jFree.org
Specification-Title: jFreeChart
Specification-Version: 1.0.14
This can be checked via looking into the JAR's MANIFEST.MF but also with code:

Code: Select all

org.jfree.chart.JFreeChart.getClass().getPackage().getSpecificationVersion()
With this feature, applications using JFreeChart log its version and check against the current JFreeChart version.
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

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

Re: JFreeChart 1.0.14

Post by david.gilbert » Thu Jul 04, 2013 8:29 am

Good suggestion. I'll provide this in the next release.
David Gilbert
JFreeChart Project Leader

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

Locked