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
JFreeChart 1.0.14
-
- Posts: 2
- Joined: Sat Feb 09, 2013 4:46 pm
- antibot: No, of course not.
-
- Posts: 2
- Joined: Sat Feb 09, 2013 4:46 pm
- antibot: No, of course not.
Re: JFreeChart 1.0.14
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.
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.
Support Java MANIFEST Specification-Version
It would be very usefull to have the JFreeChart version in the MANIFEST.MF file:
This can be checked via looking into the JAR's MANIFEST.MF but also with code:
With this feature, applications using JFreeChart log its version and check against the current JFreeChart version.
Code: Select all
Specification-Vendor: jFree.org
Specification-Title: jFreeChart
Specification-Version: 1.0.14
Code: Select all
org.jfree.chart.JFreeChart.getClass().getPackage().getSpecificationVersion()
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: JFreeChart 1.0.14
Good suggestion. I'll provide this in the next release.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

